Programming flashcards

JavaScript Array Methods

Core JavaScript array methods every frontend developer should recognize quickly.

12 cards By @mazo
#javascript#programming#webdev#arrays
Study this deck Browse Programming

Card preview

Card 1 map()

Creates a new array by transforming every item.

Card 2 filter()

Creates a new array with items that pass a test.

Card 3 reduce()

Accumulates array values into one result.

Card 4 find()

Returns the first item that matches a condition.

Card 5 some()

Returns true if at least one item passes a test.

Card 6 every()

Returns true if all items pass a test.

Card 7 includes()

Checks whether an array contains a value.

Card 8 slice()

Returns a shallow copy of part of an array.