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
arrinto chunks of sizenin order. Ifarr.lengthis not a multiple ofn, then the last chunk will be of lengtharr.length % n.