Skip to content

Instantly share code, notes, and snippets.

@isacjunior
Created August 18, 2017 19:55
Show Gist options
  • Save isacjunior/9cfc0631cbf1839b56c133ff28d0276b to your computer and use it in GitHub Desktop.
Save isacjunior/9cfc0631cbf1839b56c133ff28d0276b to your computer and use it in GitHub Desktop.
function hasThanMore50(user) {
return user.age > 50
}
const filterAgeEx3 = users.filter(hasThanMore50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment