Returns a new array with values
concatenated to the end of the current content.
See also Array.concat.
Returns a new array with values
concatenated to the end of the current content.
See also Array.concat.
Returns an iterator over the [index, value]
entries in this array.
Returns true
if the predicate is satisfied for every item in this array, false
otherwise.
See also Array.every.
Returns a new array where only items are retained that fulfilled the given predicate.
See also Array.filter.
Returns a new array where only items are retained that fulfilled the given predicate.
See also Array.filter.
Returns the first item that satisfies the given predicate, or undefined
if there is no such item.
See also Array.find.
Returns the first item that satisfies the given predicate, or undefined
if there is no such item.
See also Array.find.
Returns the index of the first item that satisfies the given predicate, -1
if no such item was found.
See also Array.findIndex.
Returns the last item that satisfies the given predicate, or undefined
if there is no such item.
See also Array.findLast.
Returns the last item that satisfies the given predicate, or undefined
if there is no such item.
See also Array.findLast.
Returns the index of the first item that satisfies the given predicate, -1
if no such item was found.
See also Array.findLastIndex.
Returns a new array where every item has been replaced with the result of calling the given callback function. If the callback function returns an array, the items in that array are included individually.
See also Array.flatMap.
Executes the given callback for every item in the array.
See also Array.forEach.
Returns the item at the given index, or undefined
if the index is out of bounds.
Returns a new, non-reactive array with this array's current content.
Searches for the given value
and returns true
if it was found, false
otherwise.
See also Array.includes.
Optional
fromIndex: numberSearches for the given value
and returns its index, or -1
if it was not found.
See also Array.indexOf.
Optional
fromIndex: numberReturns an iterator over the indices in this array.
Searches backwards for the given value
and returns its index, or -1
if it was not found.
See also Array.lastIndexOf.
Returns a new array where every item has been replaced with the result of calling the given callback function.
See also Array.map.
Calls the given callback function for all items in this array. The return value of the previous callback invocation is passed in the next call. The final result of the callback will be returned from this function.
See also Array.reduce.
Calls the given callback function for all items in this array. The return value of the previous callback invocation is passed in the next call. The final result of the callback will be returned from this function.
See also Array.reduce.
Calls the given callback function for all items in this array. The return value of the previous callback invocation is passed in the next call. The final result of the callback will be returned from this function.
See also Array.reduce.
Calls the given callback function for all items in this array, starting from the back. The return value of the previous callback invocation is passed in the next call. The final result of the callback will be returned from this function.
See also Array.reduceRight.
Calls the given callback function for all items in this array, starting from the back. The return value of the previous callback invocation is passed in the next call. The final result of the callback will be returned from this function.
See also Array.reduceRight.
Calls the given callback function for all items in this array, starting from the back. The return value of the previous callback invocation is passed in the next call. The final result of the callback will be returned from this function.
See also Array.reduceRight.
Returns a shallow copy of this array.
See also Array.slice.
Optional
start: numberReturns a shallow copy of this array.
See also Array.slice.
Optional
end: numberReturns true
if at least one item satisfies the given predicate, false
otherwise.
See also Array.some.
Returns an iterator over the items in this array.
Reactive array interface without modifying methods.
See also ReactiveArray.