Skip to content

Instantly share code, notes, and snippets.

@javorszky
Created September 20, 2014 15:11
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 javorszky/06caed79519979d86a04 to your computer and use it in GitHub Desktop.
Save javorszky/06caed79519979d86a04 to your computer and use it in GitHub Desktop.
var foo = function () {
return this;
},
a = new foo(),
b = foo.apply({});
console.log(a); // {}
console.log(b); // {}
a == b // false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment