116. implement Object.is()

JavaScript

easy  - accepted / - tried

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

Object.is(0, -0) // false0 === -0 // trueObject.is(NaN, NaN) // trueNaN === NaN // false

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

Always try to find a better approach.