sequency
Version:
Functional sequences for processing iterable data in JavaScript
12 lines (11 loc) • 372 B
TypeScript
import Sequence from "./Sequence";
export declare class Chunk {
/**
* Splits the elements of the sequence into arrays which length is determined by
* the given `chunkSize` and returns all chunks as array.
*
* @param {number} chunkSize
* @returns {Array<Array<T>>}
*/
chunk<T>(this: Sequence<T>, chunkSize: number): Array<Array<T>>;
}