Created
June 14, 2016 20:22
-
-
Save bendc/b07f5400b988c40c01b2df2f35e18a0e to your computer and use it in GitHub Desktop.
Deep object copy
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
| const duplicate = obj => JSON.parse(JSON.stringify(obj)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment