Collection<T> Interface
Package: @esfx/collection-core
A Collection<T> describes a collection object, such as an Array or Set, that can contain other values, has a known size, and may have its contents modified.
Declaration
export interface Collection<T> extends ReadonlyCollection<T>, Container<T>
Methods
[Collection.add](value)
Adds an element to the collection.
Declaration
[Collection.add](value: T): void;
Parameters
- value
- T
Returns
void
[Collection.clear]()
Clears the collection.
Declaration
[Collection.clear](): void;
Returns
void
[Collection.delete](value)
Deletes an element from the collection.
Declaration
[Collection.delete](value: T): boolean;
Parameters
- value
- T