klona
Copy nested data so edits do not affect the original object.
lukeed · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Copy an object containing a list and add an item to the copy.
What we tested
2.0.6. Copy an object containing a list and add an item to the copy. Edited the copied list while preserving the one-item original.