Created
February 26, 2022 09:08
-
-
Save jcar787/1f95eec646085139f18993397cf53b84 to your computer and use it in GitHub Desktop.
A filter example
This file contains 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 chars = [ 'j','a','v','a','s','c','r','i','p','t' ]; | |
const justAs = chars.filter(chr => chr === 'a'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment