Readonly
canWhether the object can redo changes.
Readonly
canWhether the object can undo changes.
Readonly
changedA signal emitted when the list has changed.
Readonly
isReadonly
typeThe type of this object.
Remove all values from the list.
Linear.
All current iterators are invalidated.
Dispose of the resources held by the object.
If the object's dispose
method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Get the value at the specified index.
The positive integer index of interest.
The value at the specified index.
An index
which is non-integral or out of range.
Insert a value into the list at a specific index.
The index at which to insert the value.
The value to set at the specified index.
Linear.
No changes.
The index
will be clamped to the bounds of the list.
An index
which is non-integral.
Insert a set of items into the list at the specified index.
The index at which to insert the values.
The values to insert at the specified index.
Linear.
No changes.
The index
will be clamped to the bounds of the list.
An index
which is non-integral.
Move a value from one index to another.
The index of the element to move.
The index to move the element to.
Constant.
Iterators pointing at the lesser of the fromIndex
and the toIndex
and beyond are invalidated.
A fromIndex
or a toIndex
which is non-integral.
Add a value to the back of the list.
The value to add to the back of the list.
The new length of the list.
Constant.
No changes.
Push a set of values to the back of the list.
An iterable set of values to add.
The new length of the list.
Linear.
No changes.
Remove and return the value at a specific index.
The index of the value of interest.
The value at the specified index, or undefined
if the
index is out of range.
Constant.
Iterators pointing at the removed value and beyond are invalidated.
An index
which is non-integral.
Remove a range of items from the list.
The start index of the range to remove (inclusive).
The end index of the range to remove (exclusive).
The new length of the list.
Linear.
Iterators pointing to the first removed value and beyond are invalid.
A startIndex
or endIndex
which is non-integral.
Remove the first occurrence of a value from the list.
The value of interest.
The index of the removed value, or -1
if the value
is not contained in the list.
Linear.
Iterators pointing at the removed value and beyond are invalidated.
Set the value at the specified index.
The positive integer index of interest.
The value to set at the specified index.
Constant.
No changes.
An index
which is non-integral or out of range.
An observable list that supports undo/redo.