Skip to content

Instantly share code, notes, and snippets.

@jlandure
Last active May 17, 2016 11:57
Show Gist options
  • Select an option

  • Save jlandure/25f5d56e97efd8cc59bc4e27a046ea3d to your computer and use it in GitHub Desktop.

Select an option

Save jlandure/25f5d56e97efd8cc59bc4e27a046ea3d to your computer and use it in GitHub Desktop.
lodash helper
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