Created
September 17, 2018 13:16
-
-
Save markburns/ababd7e5c8c8b89dc0ea1ee780e44159 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const values = [true, false, 1, 0, -1, "true", "false", "1", "0", "-1", "", undefined, Infinity, -Infinity, [], {}, [[]], [0], [1], NaN] | |
values.forEach(function(v){ | |
values.forEach(function(v2){ | |
var same = ((v==v2)==(v2==v)); | |
if(!same){ console.log(v, v2, same)} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment