Queue
No description provided
Queue
Parameter | Type | Optional |
---|---|---|
strategy | QueueStrategy | ❌ |
initializer | Array<T> | ❌ |
Properties
public store: any
public strategy: any
public data: any
public size: any
Methods
public [custom](): string
public add(item): void
| Parameter | Type | Optional | | --------- | ---- | --------------------------------------------------------------------------------------------------- | --- | | item | T | Array<T> | ❌ |
public at(idx): undefined | T
Parameter | Type | Optional |
---|---|---|
idx | number | ❌ |
public clear(): void
public clone(): Queue<T>
public dispatch(): undefined | T
public every(itemFilter): boolean
Parameter | Type | Optional |
---|---|---|
itemFilter | QueueItemFilter<T | boolean> | ❌ |
public filter(itemFilter): Array<T>
Parameter | Type | Optional |
---|---|---|
itemFilter | QueueItemFilter<T | boolean> | ❌ |
public find(itemFilter): undefined | T
Parameter | Type | Optional |
---|---|---|
itemFilter | QueueItemFilter<T | boolean> | ❌ |
public isFIFO(): boolean
public isLIFO(): boolean
public map(itemFilter): Array<R>
Parameter | Type | Optional |
---|---|---|
itemFilter | QueueItemFilter<T | R> | ❌ |
public remove(itemFilter): void
Parameter | Type | Optional |
---|---|---|
itemFilter | QueueItemFilter<T | boolean> | ❌ |
public removeOne(itemFilter): void
Parameter | Type | Optional |
---|---|---|
itemFilter | QueueItemFilter<T | boolean> | ❌ |
public shuffle(): void
public some(itemFilter): boolean
Parameter | Type | Optional |
---|---|---|
itemFilter | QueueItemFilter<T | boolean> | ❌ |
public toArray(): Array<T>
public toJSON(): Array<T>
public toString(): string
public static from(data, strategy): Queue<T>
Parameter | Type | Optional |
---|---|---|
data | Array<T> | ❌ |
strategy | QueueStrategy | ❌ |