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.
Get the current cell value at the given index.
The index.
The item or undefined if out of bounds.
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.
Observe this iterable. Upon attaching an observer insert
is called for
each item currently contained in the underlying collection.
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
Set the value of the cell at the given index.
The index.
The new cell value.
A dynamic array of mutable cells.