UNPKG
array-chop
Version:
beta (0.0.0)
latest (1.0.1)
1.0.1
1.0.0
0.0.0
Split an array into arrays of a specific length
github.com/tylim88/array-chop
tylim88/array-chop
array-chop
/
types
/
index.d.ts
3 lines
(2 loc)
•
98 B
TypeScript
View Raw
1
2
3
declare
const
chopArray
: <T>
(
input
: T[],
maxLength
:
number
) =>
T[][];
export
default
chopArray;