Created
December 4, 2012 15:00
-
-
Save sillero/4204877 to your computer and use it in GitHub Desktop.
copy object{} function
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
copyObject = function(o){ return JSON.parse(JSON.stringify(o)); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment