chunkObjects()
Splits an array into smaller arrays (chunks) of a given size.
Kind: global function
Returns: Array.<Array.<Object>> - Array of chunk arrays.
| Param | Type | Default | Description |
|---|---|---|---|
| [objects] | Array.<Object> | [] | The array to split. |
| [chunkSize] | number | 1 | Maximum number of elements per chunk. |
Example
ARM.chunkObjects(addresses, 10)
// [[...10 items...], [...10 items...], ...]Last updated on