Private
_onPrivate
_onPrivate
Readonly
cellsPrivate
initialThe initial items of the array.
Readonly
lengthThe number of items in the array.
Readonly
onAn emitter that emits events when items are inserted.
Readonly
onAn emitter that emits events when items are removed.
Create a stream that assigns an index, starting at 0, to eachitem in this stream. The indices are cells that will update when items are removed.
A new stream.
Create a stream that only includes items from this stream for which the given predicate function returns true.
The predicate function to apply to items.
A new stream.
Find an item matching the predicate.
A function to apply to each item.
The mutable cell of the first item matching the predicate or undefined if not found.
Insert an item.
The index to insert the item at. Existing items will be moved over.
The item to insert.
Create a strem that applies a function to each item emitted by this stream.
A new stream.
Create a strem that applies a function to the key of each item emitted by this stream.
A new stream.
Observe this iterable. Upon attaching an observer insert
is called for
each item currently contained in the underlying collection.
An observer that is called whenever an item is inserted.
An observer that is called whenever an item is removed.
A function that should be called to detach the observer functions.
Add an item to the end of the array increasing its length by one.
When inserting items the order of events is as follows:
The item to add to the end of the array
Optional
predicate: ((existingItem, newItem) => boolean)Set the value of the cell at the given index.
The index.
The new cell value.
A dynamic array of mutable cells.