Initializes DynMapReducer. 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.
Returns the internal data of this instance. Be careful!
Note: When a map is set as data then that map 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 DynMapReducer.
Protected
initializeAdd a subscriber to this DynMapReducer instance.
Callback function that is invoked on update / changes. Receives this
reference.
Unsubscribe function.
Provides a managed Map with non-destructive reducing / filtering / sorting capabilities with subscription / Svelte store support.