Skip to content

Instantly share code, notes, and snippets.

/quirk.js Secret

Created May 19, 2017 14:20
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 anonymous/5e6318bc6e419deff5719e1fd300ae11 to your computer and use it in GitHub Desktop.
Save anonymous/5e6318bc6e419deff5719e1fd300ae11 to your computer and use it in GitHub Desktop.
function foo() {
return
{
foo: 'bar'
}
}
function bar() {
return {
foo: 'bar'
}
}
typeof foo() === typeof bar(); //false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment