We talked about this at the last last TC39 meeting. I joked about adding Object.isz, or (in honor of @izs) Object.izs. But we didn't add anything. You can write it yourself, of course (just modify the Object.is polyfill).

/be

Axel Rauschmayer <mailto:[email protected]>
December 22, 2013 1:00 AM
The use case for `Object.is <http://Object.is>()` that I see is to have a version of `===`, as a function, that allows one to detect/search for `NaN`. For that use case, distinguishing +0 and -0 seems problematic (they are equated almost everywhere else). Should they really be distinguished by `Object.is <http://Object.is>()`?

Axel

--
Dr. Axel Rauschmayer
[email protected] <mailto:[email protected]>

home: rauschma.de <http://rauschma.de/>
twitter: twitter.com/rauschma <http://twitter.com/rauschma>
blog: 2ality.com <http://2ality.com/>



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to