Created
April 3, 2018 15:51
-
-
Save LearningMaterial/39c1929caa39af9f590fe7a91ce00fa3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const ages = [19, 4, 32, 18, 17, 12, 9, 14, 15]; | |
const old = ages.filter(age => { | |
return age >= 18; | |
}); | |
console.log(old); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment