grammar suggestion
contextually 'true' can be confusing after 'false' in sentence: "... false, technically that's true ..."
This commit is contained in:
parent
ff4ef57c8c
commit
86ed165f1b
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ In a way, `Number.isNaN` and `Number.isFinite` are simpler and more straightforw
|
|||
There is a special built-in method `Object.is` that compares values like `===`, but is more reliable for two edge cases:
|
||||
|
||||
1. It works with `NaN`: `Object.is(NaN, NaN) === true`, that's a good thing.
|
||||
2. Values `0` and `-0` are different: `Object.is(0, -0) === false`, technically that's true, because internally the number has a sign bit that may be different even if all other bits are zeroes.
|
||||
2. Values `0` and `-0` are different: `Object.is(0, -0) === false`, technically that's correct, because internally the number has a sign bit that may be different even if all other bits are zeroes.
|
||||
|
||||
In all other cases, `Object.is(a, b)` is the same as `a === b`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue