Object.is
Last updated
What is 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.
Free resources to learn Object.is
- ArticleObject.is() - MDN
More in stage 6: Equality Comparisons
Object.is: common questions
Can I learn Object.is in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Object.is in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Object.is tutorial for beginners?
It is lesson 44 of 124 in the free JavaScript roadmap, in stage 6, Equality Comparisons. If you are new to JavaScript, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.