Splits an array arr into chunks of size n in order. If arr.length is not a multiple of n, then the last chunk will be of length arr.length % n.
arr
n
arr.length
arr.length % n
Generated using TypeDoc
Splits an array
arr
into chunks of sizen
in order. Ifarr.length
is not a multiple ofn
, then the last chunk will be of lengtharr.length % n
.