'use strict'; var numberIsNaN = function (value) { return value !== value; }; module.exports = function is(a, b) { if (a === 0 && b === 0) { return 1 / a === 1 / b; } if (a === b) { return true; } if (numberIsNaN(a) && numberIsNaN(b)) { return true; } return false; };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
test | Folder | 0755 |
|
|
.eslintignore | File | 10 B | 0644 |
|
.eslintrc | File | 42 B | 0644 |
|
.nycrc | File | 216 B | 0644 |
|
CHANGELOG.md | File | 13.36 KB | 0644 |
|
LICENSE | File | 1.06 KB | 0644 |
|
README.md | File | 1.96 KB | 0644 |
|
auto.js | File | 36 B | 0644 |
|
implementation.js | File | 286 B | 0644 |
|
index.js | File | 390 B | 0644 |
|
package.json | File | 2.04 KB | 0644 |
|
polyfill.js | File | 181 B | 0644 |
|
shim.js | File | 306 B | 0644 |
|