Javascript Arrays

Mozilla Docs

Create an array.

Create an array from a string.

Test for an array.

Access elements in an array.

Slice

Slice can return any part of an array. The first argument is the start index. The optional second is the last.

Add elements to an array

Delete elements from an array

Splice

Splice can delete or replace a range of items from an array and return the deleted items.

Copy an array.

Combine arrays.

Convert array to string.

Searching

Sorting

foreach

forEach runs a given function on each element in the array. It doesn't return anything.

reduce

reduce runs a function on each element and returns a single value.

map

map runs a function on each element and which returns a value for each element and returns a new array with these values.

filter

filter runs a boolean function against every element and returns an array of the values that resulted in a true value.

Every

array.every checks every element in an array and returns true if every element meets the given condition.