equal-pmb

0.1.27 • Public • Published

equal-pmb

Expect two values to be equal, for whatever latest notion of equality.

Most of my unit tests are about comparing actual results with expectations, so I want a central place (this module) to maintain a code description of my latest notion of JavaScript value equality.

Usage

see test/usage.js

Caveats

  • NaN is treated as self-equal for top-level values. I consider this a feature. Future versions may treat it self-equal even when deep-comparing containers.

License

ISC

/equal-pmb/

    Package Sidebar

    Install

    npm i equal-pmb

    Weekly Downloads

    25

    Version

    0.1.27

    License

    ISC

    Unpacked Size

    24.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • mk-pmb