Skip to content

Instantly share code, notes, and snippets.

@jcar787
Created February 26, 2022 09:08
Show Gist options
  • Save jcar787/1f95eec646085139f18993397cf53b84 to your computer and use it in GitHub Desktop.
Save jcar787/1f95eec646085139f18993397cf53b84 to your computer and use it in GitHub Desktop.
A filter example
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