Skip to content

Instantly share code, notes, and snippets.

@augustl
Created June 3, 2014 10:13
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 augustl/3d99c058e8b2b9b04c0f to your computer and use it in GitHub Desktop.
Save augustl/3d99c058e8b2b9b04c0f to your computer and use it in GitHub Desktop.
function myFunc() { return {wat: 5} }
new myFunc() // Object { wat=5}
new myFunc() instanceof myFunc // false
function otherFunc() { return 5 }
new otherFunc() // otherFunc {}
new otherFunc() instanceof otherFunc // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment