Created
September 18, 2018 10:45
-
-
Save jagomf/776723d0a68461ce273e732ce1bc39e8 to your computer and use it in GitHub Desktop.
Simplest way to deep clone (and get a plain object)
This file contains 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 cloned = JSON.parse(JSON.stringify(original)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment