Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 154 Bytes

File metadata and controls

5 lines (3 loc) · 154 Bytes

A function to split an array into smaller chunks (sub-arrays).

Usage

chunkArray(array, 2) - Returns a new array of chunks (sub-arrays) of size 2.