garethslinn / helprjs

This is an open-source project which recognizes neurodiversity through the various methods of documentation. This project has a live demo for all its methods and new methods must have a link to a live demo. To contribute please folk and raise a pull request. Thank you.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typeOf(NaN)

jcubic opened this issue · comments

It returns "number". is it intentional?

NaN just means the specific value cannot be represented within the limitations of the numeric type (although that could be said for all numbers that have to be rounded to fit, but NaN is a special case). A specific NaN is not considered equal to another NaN because they may be different values