116. implement Object.is()

JavaScript
Is this helpful ?

from all members: - accepted / - tried

Object.is() is similar to === except following cases

Object.is(0, -0) // false
0 === -0 // true

Object.is(NaN, NaN) // true
NaN === NaN // false

Here is the detailed spec, can you implement your own is()?

Let's try to solve this problem within 5 mintues.

Discuss(12)