Patches, adds or removes elements as needed to match the given source array.
ReactiveValue.patch for more details.
Append elements to the end of the array. This is comparable to Array.push but with arguably clearer naming.
Insert elements to the beginning of the array. This is comparable to Array.unshift but with arguably clearer naming.
Remove elements from the end of the array. This is comparable to Array.pop but with arguably clearer naming.
Remove elements from the beginning of the array. This is comparable to Array.shift but with arguably clearer naming.
Remove elements at the given index within the array.
Insert elements at the given index within the array.
Replace elements at the given index within the array.
Alias for addLast that complies with the native API.
Alias for addFirst that complies with the native API.
Alias for removeLast that complies with the native API.
Alias for removeFirst that complies with the native API.
Reactive Array.splice.
Optional
insertValues: Unreactive<T>[]Reactive Array.fill.
Optional
start: numberOptional
end: numberReactive !array.swapElement
Reactive !array.swapElementBy
Reactive !array.swapAllElements
Reactive !array.swapAllElementsBy
Reactive !array.swapOrAddElement
Reactive !array.swapOrAddElementBy
Reactive !array.removeElementBy
Reactive !array.removeAllElementsBy
Reactive !array.toggleElementBy
Wraps an array, supports patch and offers convenience methods to reactively mutate the array.
Example