JavaScript - Array Methods

JavaScript - Array Methods

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

join()

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (30)

Section 1

(30 cards)

join()

Front

Joins all elements of an array into a string

Back

every()

Front

Checks if every element in an array pass a test

Back

fill()

Front

Fill the elements in an array with a static value

Back

forEach()

Front

Calls a function for each array element

Back

lastIndexOf()

Front

Search the array for an element, starting at the end, and returns its position

Back

toString()

Front

Converts an array to a string, and returns the result

Back

map()

Front

Creates a new array with the result of calling a function for each array element

Back

valueOf()

Front

Returns the primitive value of an array

Back

findIndex()

Front

Returns the index of the first element in an array that pass a test

Back

find()

Front

Returns the value of the first element in an array that pass a test

Back

from()

Front

Creates an array from an object

Back

shift()

Front

Removes the first element of an array, and returns that element

Back

pop()

Front

Removes the last element of an array, and returns that element

Back

unshift()

Front

Adds new elements to the beginning of an array, and returns the new length

Back

keys()

Front

Returns a Array Iteration Object, containing the keys of the original array

Back

slice()

Front

Selects a part of an array, and returns the new array

Back

concat()

Front

Joins two or more arrays, and returns a copy of the joined arrays

Back

entries()

Front

Returns a key/value pair Array Iteration Object

Back

isArray()

Front

Checks whether an object is an array

Back

reduce()

Front

Reduce the values of an array to a single value (going left-to-right)

Back

reverse()

Front

Reverses the order of the elements in an array

Back

indexOf()

Front

Search the array for an element and returns its position

Back

copyWithin()

Front

Copies array elements within the array, to and from specified positions

Back

filter()

Front

Creates a new array with every element in an array that pass a test

Back

includes()

Front

Check if an array contains the specified element

Back

reduceRight()

Front

Reduce the values of an array to a single value (going right-to-left)

Back

splice()

Front

Adds/Removes elements from an array

Back

sort()

Front

Sorts the elements of an array

Back

push()

Front

Adds new elements to the end of an array, and returns the new length

Back

some()

Front

Checks if any of the elements in an array pass a test

Back