Skip to content

Instantly share code, notes, and snippets.

@LearningMaterial
Created April 3, 2018 15:56
Show Gist options
  • Save LearningMaterial/859c7fa43911ff20dda2a2e9ee29ee2f to your computer and use it in GitHub Desktop.
Save LearningMaterial/859c7fa43911ff20dda2a2e9ee29ee2f 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 => age >= 18);
console.log(old);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment