jashkenas/coffee-script — Issue #2074: Compile comparison operators to ES Harmony egal
Author: paulmillr
Created: 2012-01-28 18:37:04+00:00
State: open

ES6 has a nice `is` / `isnt` operator that is aliased as `Object.is` / `Object.isnt`. It fixes `===` bugs, such as `0 === −0` (which is really false because `1/0 !== 1/-0`) and `NaN !== NaN` (which is obviously true).

It doesn't break much backwards compatibility, but it would be something nice to have, because it's quite frustrating every time to write helpers.

More info: http://wiki.ecmascript.org/doku.php?id=harmony:egal