Category Subject Sinopsys Description Example
Property length Reflects the number of elements in an array
Function concat(arrayX,arrayX,...,arrayX) Joins two or more arrays and returns the result. This method does not change the existing arrays, it only returns a copy of the joined arrays.
Function join(separator) Joins all elements of an array into a string. The string conversion of all array elements are joined into one string. Separator specifies a string to separate each element of the array. The separator is converted to a string if necessary. If omitted, the array elements are separated with a comma (,)
Function pop() Removes and returns the last element of an array. The pop() method is used to remove and return the last element of an array. Note: This method changes the length of the array
Function push() Adds one or more elements to the end of an array and returns the new length. The push() method adds one or more elements to the end of an array and returns the new length.
Function reverse() Transposes the elements of an array: the first array element becomes the last and the last becomes the first. The reverse method transposes the elements of the calling array object.
Function shift() Removes and returns the first element of an array. The shift() method is used to remove and return the first element of an array. Note: This method changes the length of the array.
Function slice(start[,end]) Returns selected elements from an existing array. The slice() method returns selected elements from an existing array.
Function sort([sortby]) Sorts the elements of an array. The sort() method is used to sort the elements of an array. sortby (Optional) Specifies the sort order. Must be a function
Function splice(index,howmany,element1,...,elementX) Removes and adds new elements to an array. The splice() method is used to remove and add new elements to an array
Function unshift(newelem1,newelem2,...,newelemX) Adds one or more elements to the beginning of an array and returns the new length. The unshift() method adds one or more elements to the beginning of an array and returns the new length.