Last active
August 20, 2017 00:51
-
-
Save isacjunior/8293198b7d615c13e444e4bd94be00d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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