ArrayLike
interfacesplice(0)
.
Add newItem
and each otherItems
as the
last item(s) in the group by calling
splice(container.length, 0, newItem, otherItem1, ...
otherItemN)
.
Returns a sequence containing the added items:
[newItem, otherItem1, ... otherItemN]
.
Removes the item(s) at index
by calling
splice(index, count)
. If count
is not
supplied, the default value is 1
.
Returns a sequence containing the removed items.
Modifies the list of children of this container by first removing
deleteCount
items from start
followed by
adding newItems
at the same point.
The operation of slice is based on ECMAScript 5's Array.prototype.splice.
Returns a sequence of the items removed from group during the removal step (regardless of whether these items were re-added during the addition step).
-length
,
length
].
start
.
Negative values are clamped to zero, and all other values are
clamped such that
0
< start
+
deleteCount
≤ length
.
start
.
Each item, if it already has a parent group (including this
group), is first removed from its parent group before being
added to this group.
splice
to take a variadic list of items
rather than requiring a sequence.
The operation is identical to splice(unsigned long start,
unsigned long deleteCount, sequence<item>
newItems)
.
item
within the container. If
item
appears more than once, returns first index.
If item
is not in the group, returns -1
.