Array

Array methods and properties.

Description

Array methods are provided for working with multiple items grouped under a single identifier.

Arrays are immutable.

Instance properties

Property Description

Get the length of an Array.

Instance methods

Method Description

Aggregate all the elements in the Array.

Test if any element passes the test of the given function.

Append an element to an array.

Get the Array element at a given index.

Create an Array by concatenating two Arrays.

Get unique elements.

Drop elements given a count of elements to drop.

Add the index to every array element.

Test if every array element passes the given function test.

Create an Array of elements filtered by a Function.

Get the first value in the Array.

Get the first array value that matches the given predicate.

Create an Array by applying a Function to each array element, then flatten the result by one level.

Flatten the array elements.

Apply a reducer Function to each Array element, using a seed as the first input to the reducer.

Execute a function for each Array element.

Test if the array includes the given value.

Get the array index of the first element that matches the given value.

Get the index of an array element that matches the given predicate.

Test if the array is empty.

Get the last element in an array.

Get the index of the last array element that matches the given value.

Get the index of the last array element that matches the predicate.

Get the last element value that matches the given predicate.

Create an Array by executing a Function for each Array element.

Apply a reducer Function to each Array element.

Apply a Function against an accumulator and each Array element.

Reverse the order of the array elements.

Create an Array from the elements of another Array.

Get an Array with the first Number of Array values.

Convert a Array to an Set.

Convert an array to a String representation.

Get a subarray of matching Array values.

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!