Initializes DynArrayReducer. Any iterable is supported for initial data. Take note that if data
is an array it
will be used as the host array and not copied. All non-array iterables otherwise create a new array / copy.
Optional
data: Iterable<T> | DynArrayData<T>Data iterable to store if array or copy otherwise.
Returns the internal data of this instance. Be careful!
Note: if an array is set as initial data then that array is used as the internal data. If any changes are
performed to the data externally do invoke AdapterIndexer.index.update with true
to recalculate the
index and notify all subscribers.
The internal data.
Returns whether this instance is destroyed.
Gets the main data / items length.
Main data / items length.
Gets current reversed state.
Reversed state.
Sets reversed state and notifies subscribers.
New reversed state.
Provides an iterator for data stored in DynArrayReducer.
Protected
initializeAdd a subscriber to this DynArrayReducer instance.
Callback function that is invoked on update / changes. Receives this
reference.
Unsubscribe function.
Provides a managed array with non-destructive reducing / filtering / sorting capabilities with subscription / Svelte store support.