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
Q

Returns array elements that pass a predicate.

A

Array.filter()

26
Q

Invoke a function for each array element.

A

Array.forEach()

27
Q

Search the array for an element and returns its position.

A

Array.indexOf()

28
Q

Joins all elements of an array into a string.

A

Array.join()

29
Q

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

A

Array.lastIndexOf()

30
Q

Sets or returns the number of elements in an array.

A

Array.length

31
Q

Returns a new array with elements computed by a function.

A

Array.map()

32
Q

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

A

Array.pop()

33
Q

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

A

Array.push()

34
Q

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

A

Array.reduce()

35
Q

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

A

Array.reduceRight()

36
Q

Reverses the order of the elements in an array.

A

Array.reverse()

37
Q

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

A

Array.shift()

38
Q

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

A

Array.slice()

39
Q

Test whether a predicate is true for any element.

A

Array.some()

40
Q

Sorts the elements of an array.

A

Array.sort()

41
Q

Adds/Removes elements from an array.

A

Array.splice()

42
Q

Convert an array to a localized string.

A

Array.toLocaleString()

43
Q

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

A

Array.toString()

44
Q

Insert elements at the beginning of an array.

A

Array.unshift()