dorey / JavaScript-Equality-Table

Creative Commons Attribution Share Alike 4.0 International
1.24k stars 193 forks source link

Add negative zero #24

Open frontsideair opened 4 years ago

frontsideair commented 4 years ago

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.

A further pull request can add Object.is to the legend.

tdelmas commented 4 years ago

Fix #11