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