Last active
May 17, 2016 11:57
-
-
Save jlandure/25f5d56e97efd8cc59bc4e27a046ea3d to your computer and use it in GitHub Desktop.
lodash helper
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 data = [];//some data | |
| //create and push 200 items to check the ui | |
| data.push( | |
| ..._.times(200).map((el, index) => | |
| _.assign(_.cloneDeep(data[0]), { id: index + data.length })) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment