{"name":"object-is","version":"1.0.0","description":"ES6-compliant shim for Object.is - differentiates between -0 and +0","author":{"name":"Jordan Harband"},"license":"MIT","main":"index.js","scripts":{"test":"node test.js && npm run coverage","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet"},"repository":{"type":"git","url":"git://github.com/ljharb/object-is.git"},"bugs":{"url":"https://github.com/ljharb/object-is/issues"},"homepage":"https://github.com/ljharb/object-is","keywords":["is","Object.is","equality","sameValueZero","ES6","shim","polyfill"],"dependencies":{},"devDependencies":{"tape":"~2.13.1","covert":"~0.4.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..12.0","opera/15.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"8811835bff203cf0dc0dee1342beeb749ea63e10","_id":"object-is@1.0.0","_shasum":"c4d85931da0009435ec9825ddbe578a7ff82c001","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"dist":{"shasum":"c4d85931da0009435ec9825ddbe578a7ff82c001","tarball":"http://registry-npm.ywwl.com/object-is/download/object-is-1.0.0.tgz","integrity":"sha512-j52zdcg3SccjQ4A6D2dp4yHonKKkeO7t4E7QuzTCbNY00WripFaizZMbV+MIqbA6joosVFDkwcpxE6rm4OhAaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFb0lQTwzxbBHC/T4UIVfFrLUXpJROxW67wzeIeUIP8gIhAMtVlC6tP4x6ZiRBxmgMhfekEc/xjNs9x6CejP1FZ7St"}],"size":2807,"noattachment":false,"key":"/object-is/-/object-is-1.0.0.tgz"},"directories":{},"readme":"# object-is <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nES2015-compliant shim for Object.is - differentiates between -0 and +0, and can compare to NaN.\n\nEssentially, Object.is returns the same value as === - but true for NaN, and false for -0 and +0.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262).\n\n## Example\n\n```js\nObject.is = require('object-is');\nvar assert = require('assert');\n\nassert.ok(Object.is());\nassert.ok(Object.is(undefined));\nassert.ok(Object.is(undefined, undefined));\nassert.ok(Object.is(null, null));\nassert.ok(Object.is(true, true));\nassert.ok(Object.is(false, false));\nassert.ok(Object.is('foo', 'foo'));\n\nvar arr = [1, 2];\nassert.ok(Object.is(arr, arr));\nassert.equal(Object.is(arr, [1, 2]), false);\n\nassert.ok(Object.is(0, 0));\nassert.ok(Object.is(-0, -0));\nassert.equal(Object.is(0, -0), false);\n\nassert.ok(Object.is(NaN, NaN));\nassert.ok(Object.is(Infinity, Infinity));\nassert.ok(Object.is(-Infinity, -Infinity));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/object-is\n[npm-version-svg]: https://versionbadg.es/es-shims/object-is.svg\n[deps-svg]: https://david-dm.org/es-shims/object-is.svg\n[deps-url]: https://david-dm.org/es-shims/object-is\n[dev-deps-svg]: https://david-dm.org/es-shims/object-is/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/object-is#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/object-is.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/object-is.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/object-is.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=object-is\n[codecov-image]: https://codecov.io/gh/es-shims/object-is/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/object-is/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/object-is\n[actions-url]: https://github.com/es-shims/object-is/actions\n","publish_time":1406877578410,"_cnpm_publish_time":1406877578410,"dist-tags":{"latest":"1.1.6"}}