chunkArray

Function

Returns an array with arrays of the given size.

  • chunkArray(arr: any[], size: number) : any[][]

Parameters

Parameter Type Default Notes
arr Required any[]

Array to split

size Required number

Size of every group

Returns

any[][]

Function defined in common/src/util.ts:387