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