• 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.

    Type Parameters

    • A

    Parameters

    • arr: A[]
    • n: number

    Returns A[][]

Generated using TypeDoc