Last active
July 6, 2022 11:43
-
-
Save ehizman/f7f3093c0bee610f6d3d1c42d118af80 to your computer and use it in GitHub Desktop.
Deep array copy in JS
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
| //copy all values from source to destination | |
| let dest = JSON.parse(JSON.stringify(source)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment