starry._same-value-zero
v4.0.0
Published
Member of the starry suite—modular functions for iterable objects.
Downloads
14
Maintainers
Readme
Member of the starry suite—modular functions for iterable objects.
Status
Applies to the whole suite.
Usage
function _sameValueZero(x: any, y: any): boolean
Reimplements ECMAScript's SameValueZero
wherein two values equal if they are of the same value or if both of them are zero regardless of sign.
-0
and+0
are equal.NaN
andNaN
are equal.
Parameters:
- x:
any
- y:
any
Returns: Boolean