Skip to content

Instantly share code, notes, and snippets.

@gegeke
Last active June 7, 2019 14:43
Show Gist options
  • Save gegeke/a4ff06df987b9cdced73ba2c6cb31b51 to your computer and use it in GitHub Desktop.
Save gegeke/a4ff06df987b9cdced73ba2c6cb31b51 to your computer and use it in GitHub Desktop.
Addition benchmarking using for Lodash _.sumBy()
export const addSingle = (items, noItems) => {
return new Promise((resolve) => {
const sumData = _.sumBy(items, el => {return el.data1})
resolve(sumData)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment