Skip to content

Instantly share code, notes, and snippets.

@brennancheung
Last active July 12, 2019 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennancheung/f1a3152b841f2c09afb17c5eaf10a7e8 to your computer and use it in GitHub Desktop.
Save brennancheung/f1a3152b841f2c09afb17c5eaf10a7e8 to your computer and use it in GitHub Desktop.
const extractIds = items => {
let itemIds = []
for (let i=0; i<items.length; i++) {
itemIds.push(items[i].id)
}
return itemIds
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment