is.js 250 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 10 // Implementation credits go to: // http://wiki.ecmascript.org/doku.php?id=harmony:egal 'use strict'; module.exports = function (x, y) { return (x === y) ? ((x !== 0) || ((1 / x) === (1 / y))) : ((x !== x) && (y !== y)); //jslint: ignore };