Skip to content

Instantly share code, notes, and snippets.

@mbrown3321
Created October 17, 2020 18:07
Show Gist options
  • Save mbrown3321/d23f07f13c07ec2316eb04964c6a8f33 to your computer and use it in GitHub Desktop.
Save mbrown3321/d23f07f13c07ec2316eb04964c6a8f33 to your computer and use it in GitHub Desktop.
let results = users
.filter(u => u.active && u.loginCount > 50)
.map(u => u.id);
// [2,3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment