Skip to content

Instantly share code, notes, and snippets.

@isacjunior
Last active August 20, 2017 00:51
Show Gist options
  • Save isacjunior/8293198b7d615c13e444e4bd94be00d5 to your computer and use it in GitHub Desktop.
Save isacjunior/8293198b7d615c13e444e4bd94be00d5 to your computer and use it in GitHub Desktop.
function filterUserHasThanMore50(array) {
const passed = []
for (var i = 0; i < array.length; i++) {
if(array[i].age > 50)
passed.push(array[i])
}
return passed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment