Skip to content

Instantly share code, notes, and snippets.

@ZacharyRSmith
Last active April 18, 2016 05:38
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 ZacharyRSmith/6526302945d8039d50f5 to your computer and use it in GitHub Desktop.
Save ZacharyRSmith/6526302945d8039d50f5 to your computer and use it in GitHub Desktop.
I found the following surprising while looking into JavaScript's equality/comparisons:
console.log(
       ['foo'] != ['foo']
    && ['foo'] <= ['foo']
    && ['foo'] >= ['foo']);
// -> true

The Rabbit Hole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment