JavaScript-Equality-Table
JavaScript-Equality-Table copied to clipboard
There are two gotchas that strict equality has, `NaN` and zeroes. Adding negative zero further illustrates that strict equality is not enough and we need [Object.is](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#Description). A further pull request...
The Boolean object seem to get cast when using == but not when using ===. ex. new Boolean(true) == true // -> true new Boolean(true) === true // -> false...
A string such as " \t \n\n " is falsy and the fact that " \t \n\n " == false is true would make a nice addition to the table....
It looks like I just spent a bunch of time adding the same feature as the one polkduran added. This pr just merges master and gh-pages. Is there a reason...
'0X0' '1E0' 1E-1111 ['Infinity'] '0X0' : string that is hex for zero if converted to Number '1E0' : Exponential notation for one if converted to Number 1e-1111 : underflow (zero)...
Something that I came up against recently, whitespace compared for equality with 0 resolves to true. It's not the same as an empty string because empty string and white space...
What about adding `0`and `-0` ? It may have some special behavior in JavaScript (see https://twitter.com/creationix/status/449215561147219969).
The text above the columns should, in my opinion, no longer be generated with `` tags. Instead, because CSS has the `writing-mode` property, it can be used. If set to...
Hey team, I’ve made a few improvements to our code to ensure it’s more modern, efficient, and aligned with best practices without affecting production performance. ### Changes Made: - **HTML5...