Array.prototype.contains

Axel Rauschmayer axel at rauschma.de
Sat Nov 3 22:13:26 PDT 2012


> (I am still sad we did not fix indexOf, lastIndexOf, and switch when we arguably had the chance.)

Can you elaborate? We don’t have the chance, any more? Would anything break (or did, in tests)? How about only letting those methods find NaN, while letting them consider +0 and -0 equal?

Axel

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121104/66e4f646/attachment-0001.html>


More information about the es-discuss mailing list