Skip to content

Instantly share code, notes, and snippets.

@nathanaschbacher
Created September 12, 2012 06:12
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 nathanaschbacher/3704638 to your computer and use it in GitHub Desktop.
Save nathanaschbacher/3704638 to your computer and use it in GitHub Desktop.
Quick type couriering lesson for Raph
var MyClass = function MyClass() {
this.property = 'something';
}
var temp = new MyClass();
console.log(temp instanceof MyClass); // prints 'true'
temp = JSON.parse(JSON.stringify(temp));
console.log(temp instanceof MyClass); // prints 'false'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment