Download as ods, pdf, or txt
Download as ods, pdf, or txt
You are on page 1of 128

Sheet1

Array Methods
The following table lists the standard methods of the Array object.

Method Description

concat() Merge two or more arrays, and returns a new array.

copyWithin() Copies part of an array to another location in the same array and returns it.

entries() Returns a key/value pair Array Iteration Object.

every() Checks if every element in an array pass a test in a testing function.

fill() Fill the elements in an array with a static value.

filter() Creates a new array with all elements that pass the test in a testing function.

find() Returns the value of the first element in an array that pass the test in a testing function.

findIndex() Returns the index of the first element in an array that pass the test in a testing function.

forEach() Calls a function once for each array element.

from() Creates an array from an object.

includes() Determines whether an array includes a certain element.

indexOf() Search the array for an element and returns its first index.

isArray() Determines whether the passed value is an array.

join() Joins all elements of an array into a string.

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

lastIndexOf() Search the array for an element, starting at the end, and returns its last index.

map() Creates a new array with the results of calling a function for each array element.

pop() Removes the last element from an array, and returns that element.

push() Adds one or more elements to the end of an array, and returns the array's new length.

reduce() Reduce the values of an array to a single value (from left-to-right).

reduceRight() Reduce the values of an array to a single value (from right-to-left).

reverse() Reverses the order of the elements in an array.

shift() Removes the first element from an array, and returns that element.

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

some() Checks if any of the elements in an array passes the test in a testing function.

sort() Sorts the elements of an array.

splice() Adds/Removes elements from an array.

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

unshift() Adds new elements to the beginning of an array, and returns the array's new length.

values() Returns a Array Iteration Object, containing the values of the original array.

Page 1
Sheet1

Page 2
Sheet1

Page 3
Sheet1

Page 4
Sheet1

Page 5
Sheet1

Page 6
Sheet1

Page 7
Sheet1

Page 8
Sheet1

Page 9
Sheet1

Page 10
Sheet1

Page 11
Sheet1

Page 12
Sheet1

Page 13
Sheet1

Page 14
Sheet1

Page 15
Sheet1

Page 16
Sheet1

Page 17
Sheet1

Page 18
Sheet1

Page 19
Sheet1

Page 20
Sheet1

Page 21
Sheet1

Page 22
Sheet1

Page 23
Sheet1

Page 24
Sheet1

Page 25
Sheet1

Page 26
Sheet1

Page 27
Sheet1

Page 28
Sheet1

Page 29
Sheet1

Page 30
Sheet1

Page 31
Sheet1

Page 32
Sheet1

Page 33
Sheet1

Page 34
Sheet1

Page 35
Sheet1

Page 36
Sheet1

Page 37
Sheet1

Page 38
Sheet1

Page 39
Sheet1

Page 40
Sheet1

Page 41
Sheet1

Page 42
Sheet1

Page 43
Sheet1

Page 44
Sheet1

Page 45
Sheet1

Page 46
Sheet1

Page 47
Sheet1

Page 48
Sheet1

Page 49
Sheet1

Page 50
Sheet1

Page 51
Sheet1

Page 52
Sheet1

Page 53
Sheet1

Page 54
Sheet1

Page 55
Sheet1

Page 56
Sheet1

Page 57
Sheet1

Page 58
Sheet1

Page 59
Sheet1

Page 60
Sheet1

Page 61
Sheet1

Page 62
Sheet1

Page 63
Sheet1

Page 64
Sheet1

Page 65
Sheet1

Page 66
Sheet1

Page 67
Sheet1

Page 68
Sheet1

Page 69
Sheet1

Page 70
Sheet1

Page 71
Sheet1

Page 72
Sheet1

Page 73
Sheet1

Page 74
Sheet1

Page 75
Sheet1

Page 76
Sheet1

Page 77
Sheet1

Page 78
Sheet1

Page 79
Sheet1

Page 80
Sheet1

Page 81
Sheet1

Page 82
Sheet1

Page 83
Sheet1

Page 84
Sheet1

Page 85
Sheet1

Page 86
Sheet1

Page 87
Sheet1

Page 88
Sheet1

Page 89
Sheet1

Page 90
Sheet1

Page 91
Sheet1

Page 92
Sheet1

Page 93
Sheet1

Page 94
Sheet1

Page 95
Sheet1

Page 96
Sheet1

Page 97
Sheet1

Page 98
Sheet1

Page 99
Sheet1

Page 100
Sheet1

Page 101
Sheet1

Page 102
Sheet1

Page 103
Sheet1

Page 104
Sheet1

Page 105
Sheet1

Page 106
Sheet1

Page 107
Sheet1

Page 108
Sheet1

Page 109
Sheet1

Page 110
Sheet1

Page 111
Sheet1

Page 112
Sheet1

Page 113
Sheet1

Page 114
Sheet1

Page 115
Sheet1

Page 116
Sheet1

Page 117
Sheet1

Page 118
Sheet1

Page 119
Sheet1

Page 120
Sheet1

Page 121
Sheet1

Page 122
Sheet1

Page 123
Sheet1

Page 124
Sheet1

Page 125
Sheet1

Page 126
Sheet1

Page 127
Sheet1

Page 128

You might also like