append(any element) | append the element to the array |
apply(function func) | replace each element of the array with the result of applying the given function |
clear() | removes all elements from the array |
extend(array other) | append each item in another array to this array |
filter(function function) | create a subarray containing all elements in the array that return true from the given method |
find(any value) | return the index of the given value in the array, null if not found |
insert(integer index, any element) | insert the element at the given index |
len() | returns the number of elements in the array |
map(function func) | creates a new array by mapping each value of this array |
pop() | remove and return the last element from the array |
push(any element) | append the element to the array |
reduce(function func) | reduce an array to a single value by applying the given function to pairs of values |
remove(integer index) | remove the element at the given index |
resize(integer size, any fill) | resize the array, using the element 'fill' to pad any extra slots |
reverse() | reverse the elements in the array |
slice(integer start, integer end) | returns a subarray as a new array |
sort(function comparator) | sorts the array, using the comparator function if given |
top() | returns the last element of the array |
Append the element to the array
Replace each element of the array with the result of applying the given function
Removes all elements from the array
Append each item in another array to this array.
Create a subarray containing all elements in the array that return true from the given method.
Return the index of the given value in the array, null if not found
Insert the element at the given index
Returns the number of elements in the array
Creates a new array by mapping each value of this array.
Remove and return the last element from the array
Append the element to the array
Reduce an array to a single value by applying the given function to pairs of values
Remove the element at the given index
resize the array, using the element 'fill' to pad any extra slots
Reverse the elements in the array
Returns a subarray as a new array
Sorts the array, using the comparator function if given
Returns the last element of the array