1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

Merge pull request #639 from xianshenglu/patch-1

删除无效冗余字符
This commit is contained in:
Ruan YiFeng 2018-04-09 10:55:40 +08:00 committed by GitHub
commit 893a34ba27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,15 +127,15 @@ ES6 规格将这个标准流程,使用简写的方式表达。
> Return the result of performing Strict Equality Comparison `x === y`. > Return the result of performing Strict Equality Comparison `x === y`.
> 1. If `x` is `null` and `y` is `undefined`, return `true`. > 1. If `x` is `null` and `y` is `undefined`, return `true`.
> 1. If `x` is `undefined` and `y` is `null`, return `true`. > 1. If `x` is `undefined` and `y` is `null`, return `true`.
> 1. If `Type(x)` is Number and `Type(y)` is String,\ > 1. If `Type(x)` is Number and `Type(y)` is String,
> return the result of the comparison `x == ToNumber(y)`. > return the result of the comparison `x == ToNumber(y)`.
> 1. If `Type(x)` is String and `Type(y)` is Number,\ > 1. If `Type(x)` is String and `Type(y)` is Number,
> return the result of the comparison `ToNumber(x) == y`. > return the result of the comparison `ToNumber(x) == y`.
> 1. If `Type(x)` is Boolean, return the result of the comparison `ToNumber(x) == y`. > 1. If `Type(x)` is Boolean, return the result of the comparison `ToNumber(x) == y`.
> 1. If `Type(y)` is Boolean, return the result of the comparison `x == ToNumber(y)`. > 1. If `Type(y)` is Boolean, return the result of the comparison `x == ToNumber(y)`.
> 1. If `Type(x)` is either String, Number, or Symbol and `Type(y)` is Object, then\ > 1. If `Type(x)` is either String, Number, or Symbol and `Type(y)` is Object, then
> return the result of the comparison `x == ToPrimitive(y)`. > return the result of the comparison `x == ToPrimitive(y)`.
> 1. If `Type(x)` is Object and `Type(y)` is either String, Number, or Symbol, then\ > 1. If `Type(x)` is Object and `Type(y)` is either String, Number, or Symbol, then
> return the result of the comparison `ToPrimitive(x) == y`. > return the result of the comparison `ToPrimitive(x) == y`.
> 1. Return `false`. > 1. Return `false`.