Array object can store multiple values in a single variable:
Array indexes are zero-based: the first element in the array is at index 0, the second is 1, and so on.
Property | Description |
Array length Property | The length property sets or returns the number of elements in an array. |
Method | Description |
Array concat() Method | The concat() method is used to combine two or more arrays together. |
Array constructor Property | In JavaScript, the constructor property returns the constructor function for an object. |
Array copyWithin() Method | The copyWithin() method copies array elements within the array, to and from specified positions. |
Array entries() Method | The entries() method returns an Array Iterator object with key/value pairs. |
Array every() Method | The every() method checks if all elements in an array pass a test. |
Array fill() Method | The fill() method fills all the elements in an array with a static value. |
Array filter() Method | The filter() method creates an array filled with all array elements that pass a test. |
Array find() Method | The find() method returns the value of the first element in an array that pass a test. |
Array findIndex() Method | The findIndex() method returns the index of the first element in an array that pass a test. |
Array forEach() Method | The forEach() method calls a provided function once for each element in an array. |
Array from() Method | The Array.from() method returns an Array object from object with a length property or an iterable object. |
Array includes() method | You can check if an element exists in an Array using this method. |
Array indexOf() Method | The indexOf() method searches the array for the specified item, and returns its position. |
Array isArray() Function | The isArray() method determines whether an object is an array. |
Array join() Method | The join() method joins the elements of an array into a string, and returns the string. |
Array keys() Method | The keys() method returns an Array Iterator with the keys of an array. |
Array lastIndexOf() Method | The lastIndexOf() method searches the array for the specified item, and returns its position. |
Array map() Method | The map() method returns a new array with the elements being processed by a function for every array element. |
Array of() method | Array.of() creates an array of elements more easily. |
Array pop() Method | The pop() method removes the last element of an array, and returns that element. |
Array prototype Property | The prototype property allows you to add new properties and methods to the Array() object. |
Array push() Method | The push() method adds new items to the end of an array, and returns the new length. |
Array reduce() Method | The reduce() method will reduce the array to a single value. |
Array reduceRight() Method | The reduceRight() method reduces the array to a single value from position of length-1 to 0. |
Array reverse() Method | The reverse() method reverses the order of the elements in an array. |
Array shift() Method | The shift() method removes the first item from an array. |
Array slice() Method | The slice() method returns the sub-array elements in an array as a new array object. |
Array some() Method | The some() method checks if any of the elements in an array pass a test. |
Array sort() Method | The sort() method sorts the array items. |
Array splice() Method | The splice() method can add items to an array. |
Array toString() Method | The toString() method returns an array as a String. |
Array unshift() Method | The unshift() method adds new items to the beginning of an array, and returns the new length. |
Array valueOf() Method | The valueOf() method returns the array. |