chunk<T
>(array
: readonly T
[], chunkSize
: number
): T
[][]
Splits up an array into chunks
Type Parameters
Parameters
Parameter | Type | Description |
---|
array | readonly T [] | The array to chunk up |
chunkSize | number | The size of each individual chunk |
Returns
T
[][]
Defined in
chunk.ts:6