Number.isNaN

John-David Dalton john.david.dalton at gmail.com
Fri Dec 14 09:01:32 PST 2012


> No,  the whole point of Number.isNaN is to provide a definitively test
for NaN number values which  cannot be tested for in the usual way using
===.

Wat? This seems to be a good reason to allow `Object(NaN)`  and use the
NumberWrapper brand as it cannot be tested via the normal way of  `myNaN
!== myNaN`.


On Fri, Dec 14, 2012 at 8:39 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:

> No,  the whole point of Number.isNaN is to provide a definitively test for
> NaN number values which  cannot be tested for in the usual way using ===.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121214/83707ea2/attachment.html>


More information about the es-discuss mailing list