Skip to content

Instantly share code, notes, and snippets.

@iamads
Created May 20, 2019 13:48
Show Gist options
  • Select an option

  • Save iamads/aad0edeaa4af7e5a7faffbb8bb8a7899 to your computer and use it in GitHub Desktop.

Select an option

Save iamads/aad0edeaa4af7e5a7faffbb8bb8a7899 to your computer and use it in GitHub Desktop.
filter1
const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];
const bigWords = words.filter(word => word.length > 6);
// console.log(bigWords) returns ["exuberant", "destruction", "present"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment