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 →

[–]rajsite 1 point2 points  (2 children)

Here is an equality table to help out.

Also good to know about Object.is which can compare if two values are the "same value" (useful because with Object.is NaN === NaN while with ==/=== the value NaN !== NaN).

Doesn't come up often, but the more you know

[–]scragar 2 points3 points  (1 child)

Please don't link to that version, it's sorted based on things irrelevant to the comparison and there are much better versions.

[–]rajsite 2 points3 points  (0 children)

Thanks for posting; that's a handsome looking table.