Splits items into consecutive chunks of at most chunkSize elements.
items
chunkSize
Element type
Source array (not mutated)
Maximum chunk length; must be a positive integer. Defaults to DEFAULT_CHUNK_SIZE
Array of chunks preserving original order
RangeError if chunkSize is not a positive integer
Splits
itemsinto consecutive chunks of at mostchunkSizeelements.