The type of elements in the collection.
Optional
iterable: Iterable<T, any, any>Readonly
capacityThe maximum number of elements the collection can hold.
If the collection is unbounded, this will be Infinity
.
Protected
Readonly
dataRemoves all elements from the collection.
Returns the number of elements in the collection.
Replaces the first occurence of the item matching the given predicate in the collection with a new item.
true
if the item was found and replaced, false
otherwise.
Interface representing a collection of elements.