Last active
March 20, 2020 10:10
-
-
Save miguelmota/300445a06a342e47a335 to your computer and use it in GitHub Desktop.
Deep clone copy array with lodash (underscore)
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
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
This won't work.