starry._same-value-zero

4.0.0 • Public • Published

Member of the starry suite—modular functions for iterable objects.

npm node

Status

Applies to the whole suite.

Build Status Coverage Status

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 and NaN are equal.

Parameters:

  • x: any
  • y: any

Returns: Boolean

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i starry._same-value-zero

    Weekly Downloads

    3

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    4.21 kB

    Total Files

    9

    Last publish

    Collaborators

    • seangenabe