Array Methods Flashcards

1
Q

concat()

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

copyWithin()

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

entries()

A

Returns a key/value pair Array Iteration Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

every()

A

Checks if every element in an array pass a test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

fill()

A

Fill the elements in an array with a static value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

filter()

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

find()

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

findIndex()

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

forEach()

A

Calls a function for each array element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

from()

A

Creates an array from an iterable object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

includes()

A

Check if an array contains the specified element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

indexOf()

A

Search the array for an element and returns its position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

isArray()

A

Checks whether an object is an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

join()

A

Joins all elements of an array into a string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

keys()

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

lastIndexOf()

A

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

17
Q

map()

A

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

18
Q

pop()

A

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

19
Q

push()

A

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

20
Q

reduce()

A

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

21
Q

reduceRight()

A

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

22
Q

reverse()

A

Reverses the order of the elements in an array

23
Q

shift()

A

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

24
Q

slice()

A

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

25
Q

some()

A

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

26
Q

sort()

A

Sorts the elements of an array

27
Q

splice()

A

Adds/Removes elements from an array

28
Q

toString()

A

Converts an array to a string, and returns the result

29
Q

unshift()

A

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

30
Q

valueOf()

A

Returns the primitive value of an array