-
-
Save ChinW/2edc69697c5ddfb5f40b46083847973c to your computer and use it in GitHub Desktop.
Deep clone copy array with lodash.
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
| var array = [{},{},{}]; | |
| var copy = _.map(array, _.clone); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment