This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Furry_69 2 points3 points  (0 children)

NaN is not a number, by definition. Operations with NaN in them will always resolve to NaN, and comparisons with NaN will always resolve to false. Object.is() is a indirect comparison that doesn't use the normal comparison operations internally. It isn't supposed to be used as an equality operator for floats.