array Flashcards

(30 cards)

1
Q

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

A

concat()

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

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

A

copyWithin()

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

Returns a key/value pair Array Iteration Object

A

entries()

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

Checks if every element in an array pass a test

A

every()

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

Fill the elements in an array with a static value

A

fill()

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

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

A

filter()

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

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

A

find()

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

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

A

findIndex()

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

Calls a function for each array element

A

forEach()

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

Creates an array from an object

A

from()

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

Check if an array contains the specified element

A

includes()

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

Search the array for an element and returns its position

A

indexOf()

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

Checks whether an object is an array

A

isArray()

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

Joins all elements of an array into a string

A

join()

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

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

A

keys()

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

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

A

lastIndexOf()

17
Q

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

18
Q

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

A

pop()

mutable

19
Q

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

A

push()

mutable

20
Q

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

21
Q

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

A

reduceRight()

22
Q

Reverses the order of the elements in an array

A

reverse()

will mutate the array

23
Q

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

A

shift()

mutable

24
Q

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

25
Checks if any of the elements in an array pass a test
some()
26
Sorts the elements of an array
sort() mutable
27
Adds/Removes elements from an array
splice() mutable
28
Converts an array to a string, and returns the result
toString()
29
Adds new elements to the beginning of an array, and returns the new length
unshift() mutable
30
Returns the primitive value of an array
valueOf()