Created
May 20, 2019 13:48
-
-
Save iamads/aad0edeaa4af7e5a7faffbb8bb8a7899 to your computer and use it in GitHub Desktop.
filter1
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 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