object-is
Last updated
Last updated
ES2015-compliant shim for Object.is - differentiates between -0 and +0, and can compare to NaN.
Essentially, Object.is returns the same value as === - but true for NaN, and false for -0 and +0.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
Simply clone the repo, npm install
, and run npm test