scrimba
Arrow functions, Map & Filter
Filter
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Filter
Expand for more info
index.js
run
preview
console
// Using Array.filter
// filter: from a collection to a smaller collection with only some of the elements.

const wutangClanMembers = [
"RZA",
"GZA",
"Inspectah Deck",
"U-God",
"Ghostface Killah",
"Method Man",
"Raekwon",
"Masta Killa",
"Cappadonna",
"Ol' Dirty Bastard",
]

// Members with the letter "a" in their name

// Members whose name includes the word Killa

// Members that have ALLCAPS names

// Members with a space in their name

Console
[
"RZA"
,
"GZA"
,
"Inspectah Deck"
,
"U-God"
,
"Ghostface Killah"
,
"Method Man"
,
"Raekwon"
,
"Masta Killa"
,
"Cappadonna"
,
"Ol' Dirty Bastard"
]
,
index.html
-13:21