Skip to content

Instantly share code, notes, and snippets.

@brennancheung
Created August 5, 2018 23:17
Show Gist options
  • Select an option

  • Save brennancheung/079bc45d98705f2bc024550d23a887e1 to your computer and use it in GitHub Desktop.

Select an option

Save brennancheung/079bc45d98705f2bc024550d23a887e1 to your computer and use it in GitHub Desktop.
let newArr = []
for (let i = 0; i < arr.length; i++) {
let item = arr[i]
newArr.push(fn(item)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment