Skip to content

Instantly share code, notes, and snippets.

@LearningMaterial
Created April 3, 2018 15:51
Show Gist options
  • Save LearningMaterial/39c1929caa39af9f590fe7a91ce00fa3 to your computer and use it in GitHub Desktop.
Save LearningMaterial/39c1929caa39af9f590fe7a91ce00fa3 to your computer and use it in GitHub Desktop.
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