Skip to content

Instantly share code, notes, and snippets.

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