Skip to content

chunksOf

chunksOf(n): <A>(data) => readonly readonly A[][]

Defined in: Core/Arr.ts:293

Splits an array into chunks of the given size.

number

<A>(data): readonly readonly A[][]

A

readonly A[]

readonly readonly A[][]

pipe([1, 2, 3, 4, 5], Arr.chunksOf(2)); // [[1, 2], [3, 4], [5]]