Skip to content

Instantly share code, notes, and snippets.

@markburns
Created September 17, 2018 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markburns/ababd7e5c8c8b89dc0ea1ee780e44159 to your computer and use it in GitHub Desktop.
Save markburns/ababd7e5c8c8b89dc0ea1ee780e44159 to your computer and use it in GitHub Desktop.
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