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.
OptionalfromIndex: numberSearches for the given value and returns its index, or -1 if it was not found.
See also Array.indexOf.
OptionalfromIndex: 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.
Appends all given values to the end of this array.
See also Array.push.
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.
Removes the first value from this array and returns it, or undefined if the array was empty.
See also Array.shift.
Returns a shallow copy of this array.
See also Array.slice.
Optionalstart: numberReturns a shallow copy of this array.
See also Array.slice.
Optionalend: numberReturns true if at least one item satisfies the given predicate, false otherwise.
See also Array.some.
Sorts this array using the given comparison function.
See also Array.sort.
Changes the contents of this array by removing, replacing and optionally adding new elements.
See also Array.splice.
OptionaldeleteCount: numberChanges the contents of this array by removing, replacing and optionally adding new elements.
See also Array.splice.
Appends all given values to the beginning of this array.
See also Array.unshift.
Returns an iterator over the items in this array.
A reactive array class.
The array interface here works similar to the builtin
Array(i.e.T[]). The major difference is that one must use thegetandsetmethods instead of using square brackets, i.e. usearray.get(i)instead ofarray[i]andarray.set(i, v)instead ofarray[i] = v. Not all builtin array methods are implemented right now, but most of them are.Reads and writes to this array are reactive.