English
Appearance
Chunking an array. The passed size indicates the length of the chunk.
array
size
import { chunk } from 'rattail' chunk([1, 2, 3], 2) // return [[1, 2], [3]]
arr
Array
number
1