Array
Array methods and properties.
Description
Array methods are provided for working with multiple items grouped under a single identifier.
Arrays are immutable.
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. |
|
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. |
|
Get the first value in the Array. |
|
Get the first matching value from the Array. |
|
Flatten the array elements. |
|
Execute a function for each Array element. |
|
Test if the array includes the given value. |
|
Get the array index of the given element. |
|
Get the index of an element. |
|
Test if the array is empty. |
|
Get the last element in an array. |
|
Get the array index of the element that matches the given value. |
|
Get the array index of the element that matches the predicate. |
|
Get the last element that matches the given predicate. |
|
Reverse the order of the array elements. |
|
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!