-
-
Save juukie/934f3f17dda1ea307c74305ae98c8131 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