top | item 37111353

(no title)

mohbk | 2 years ago

and typeof NaN == "number" is also part of the standard, it is valid to pass NaN to functions that accept numbers, and it's expected to propagate or change back to normal numbers (e.g. NaN^0=1)

discuss

order

marcosdumay|2 years ago

If anything, JS has plenty of problems due to its too literal interpretation of NaN.