Readonly
[toProtected
Readonly
mapOptional
thisArg: anyReturns a value that represents this object and is also serializable with JSON.stringify
.
the value to serialize
export class Queue<T> implements JsonSerializable<T[]> {
private readonly items: T[];
toJSON(): T[] {
return this.items.slice(0);
}
}
Generated using TypeDoc
A bag is an object that aids with counting items.