Monday, March 6, 2017

Strict and Correct Equality in ES6 with Object.is()

If you're targeting ES5 then you will need the polyfill. If you are noding or live in my fantasy world of targeting only ES6, then you are good to go. No need to refactor all your code yet but if you are doing extra work to deal with NaN or zeroes then you might consider it. Certainly you should use Object.is() with any new code base:


No comments:

Post a Comment