Constructors
- new Batch<T>(index: number, items: readonly T[]): Batch<T>
Type parameters
Parameters
index: number
items: readonly T[]
Returns Batch<T>
Methods
- from<T>(iterable: Iterable<T, any, any>, size: number, predicate?: (value: T, index: number) => boolean): IteratorObject<Batch<T>, undefined, unknown>
Type parameters
Parameters
iterable: Iterable<T, any, any>
size: number
optionalpredicate: (value: T, index: number) => boolean
Returns IteratorObject<Batch<T>, undefined, unknown>
- fromAsync<T>(iterable: Iterable<T, any, any> | AsyncIterable<T, any, any>, size: number, predicate?: (value: T, index: number) => boolean): AsyncIteratorObject<Batch<T>, undefined, unknown>
Type parameters
Parameters
iterable: Iterable<T, any, any> | AsyncIterable<T, any, any>
size: number
optionalpredicate: (value: T, index: number) => boolean
Returns AsyncIteratorObject<Batch<T>, undefined, unknown>