In ECMAScript 6 Object.is
behaves like ===
except that it distinguishes positive and negative zeroes, and Object.is(NaN, NaN)
evaluates to true
. (See here for a writeup.)
Chrome 24 supports Object.is
.
More Related Contents:
- Add/Remove Class of Nav Objects on Page Scroll
- XMLHttpRequest cannot load XXX No ‘Access-Control-Allow-Origin’ header
- Best way to detect when a user leaves a web page?
- How do I decode a string with escaped unicode?
- Javascript: Setting location.href versus location
- How to check whether a Storage item is set?
- Cache busting via params
- JSON.stringify doesn’t work with normal Javascript array
- Sort an array of object by a property (with custom order, not alphabetically)
- ‘this’ different between REPL and script
- How to check if an embedded SVG document is loaded in an html page?
- Why “this” is undefined inside a fat arrow function definition? [duplicate]
- Dynamically load a stylesheet with React
- How to wait for a WebSocket’s readyState to change
- Custom choices in JavaScript confirm dialog
- Regex remove repeated characters from a string by javascript
- Refresh page and run function after – JavaScript
- Querying by a field with type ‘reference’ in Firestore
- Is there a Sleep/Pause/Wait function in JavaScript? [duplicate]
- Why can’t React Hooks be called inside loops or nested function?
- sweet-alert display HTML code in text
- Testing code that uses an IntersectionObserver
- How can I include all JavaScript files in a directory via JavaScript file?
- Check which element has been clicked with jQuery
- Clear a selection in Firefox
- What to use instead of FileReader for Safari?
- Why is try {} .. catch() not working with async/await function?
- Blob download is not working in IE
- How do I get Greasemonkey to click on a button that only appears after a delay?
- Is it bad practice to pass a string to settimeout? If yes, why? [duplicate]