Nov 19, 2020
🙏 Michael Schneider thanks for the great question! And thank you for reading and commenting on my article.
NaN does work differently with Object.is()
and Set
but of course has its weird behavior with equality operators. As .is()
is a function on the global Object class, I generally don’t call it an “equality operator” like ==
or ===
… For example, in Jest tests, .toEqual() is different from .toBe()