mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
500 B
500 B
Object.is
Object.is() is a method for comparing two values with stricter behavior than ===. It handles two edge cases differently: Object.is(NaN, NaN) returns true (while NaN === NaN is false), and Object.is(+0, -0) returns false (while +0 === -0 is true). It is useful when exact value identity is needed.
Visit the following resources to learn more: