Array Flashcards

1
Q

Array.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

Array.every()

A

Tests whether some condition holds for all elements of an array.

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

Array.filter()

A

Returns array elements that pass a predicate.

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

Array.forEach()

A

Invoke a function for each array element.

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

Array.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
6
Q

Array.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
7
Q

Array.lastIndexOf()

A

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

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

Array.length

A

Sets or returns the number of elements in an array.

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

Array.map()

A

Returns a new array with elements computed by a function.

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

Array.pop()

A

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

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

Array.push()

A

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

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

Array.reduce()

A

Returns a reduced value of the array as computed by a function being applied to all elements from left-to-right.

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

Array.reduceRight()

A

Returns a reduced value of the array as computed by a function being applied to all elements from right-to-left.

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

Array.reverse()

A

Reverses the order of the elements in an array.

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

Array.shift()

A

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

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

Array.slice()

A

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

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

Array.some()

A

Test whether a predicate is true for any element.

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

Array.sort()

A

Sorts the elements of an array.

19
Q

Array.splice()

A

Adds/Removes elements from an array.

20
Q

Array.toLocaleString()

A

Convert an array to a localized string.

21
Q

Array.toString()

A

Converts an array to a string, and returns the result.

22
Q

Array.unshift()

A

Insert elements at the beginning of an array.

23
Q

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

A

Array.concat()

24
Q

Tests whether some condition holds for all elements of an array.

A

Array.every()

25
Returns array elements that pass a predicate.
Array.filter()
26
Invoke a function for each array element.
Array.forEach()
27
Search the array for an element and returns its position.
Array.indexOf()
28
Joins all elements of an array into a string.
Array.join()
29
Search the array for an element, starting at the end, and returns its position.
Array.lastIndexOf()
30
Sets or returns the number of elements in an array.
Array.length
31
Returns a new array with elements computed by a function.
Array.map()
32
Removes the last element of an array, and returns that element.
Array.pop()
33
Adds new elements to the end of an array, and returns the new length.
Array.push()
34
Returns a reduced value of the array as computed by a function being applied to all elements from left-to-right.
Array.reduce()
35
Returns a reduced value of the array as computed by a function being applied to all elements from right-to-left.
Array.reduceRight()
36
Reverses the order of the elements in an array.
Array.reverse()
37
Removes the first element of an array, and returns that element.
Array.shift()
38
Selects a part of an array, and returns the new array.
Array.slice()
39
Test whether a predicate is true for any element.
Array.some()
40
Sorts the elements of an array.
Array.sort()
41
Adds/Removes elements from an array.
Array.splice()
42
Convert an array to a localized string.
Array.toLocaleString()
43
Converts an array to a string, and returns the result.
Array.toString()
44
Insert elements at the beginning of an array.
Array.unshift()