Chunk

_.chunk(array, [size=1])

Arguments

array (Array): The array to process. [size=1] (number): The length of each chunk

Returns

(Array): Returns the new array of chunks.

Example