Skip to content

Instantly share code, notes, and snippets.

@yumitsu
Created November 6, 2014 16:18
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 yumitsu/887acd78c8fad4c0bbe9 to your computer and use it in GitHub Desktop.
Save yumitsu/887acd78c8fad4c0bbe9 to your computer and use it in GitHub Desktop.
Welcome to JS
> Object()
{}
> Object() == {}
false
> Object() == new Object()
false
> {} == new Object()
false
@razouck
Copy link

razouck commented Dec 21, 2015

An object is never equal to another object.
console.log({} == {}) // > false

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