Created
September 12, 2012 06:12
-
-
Save nathanaschbacher/3704638 to your computer and use it in GitHub Desktop.
Quick type couriering lesson for Raph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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