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 elements of an Array. |
|
Append a provided element to an Array. |
|
Get the Array element at a provided index. |
|
Concatenate two Arrays. |
|
Get the unique elements of an Array. |
|
Drop the first N elements of an Array. |
|
Add the index to each element of an Array. |
|
Get the first element of an Array. |
|
Flatten an Array by one level. |
|
Test if the Array includes a provided element. |
|
Get the index of the first Array element that matches a provided value. |
|
Test if an Array is empty. |
|
Get the last element of an Array. |
|
Get the index of the first Array element that matches a provided value. |
|
Get the last element value that matches the given predicate. |
|
Test if an Array is not empty. |
|
Sort an Array's elements. |
|
Prepend an element to an Array. |
|
Reverse the order of an Array's elements. |
|
Get a subset of an Array's elements based on provided indexes. |
|
Get the first N elements of an Array. |
|
Convert an Array to a String. |
|
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!