Skip to content

Instantly share code, notes, and snippets.

@mbrown3321
Created October 17, 2020 17:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mbrown3321/2883d729b8c08aca840b048762c71f15 to your computer and use it in GitHub Desktop.
let ids = [];
for (let i = 0; i < users.length; i++) {
ids.push(users[i].id);
}
// [1, 2, 3, 4, 5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment