• Splits a single list into many lists of the desired size. If given a list of 10 items and a size of 2, it will return 5 lists with 2 items each

    Type Parameters

    • T

    Parameters

    • list: readonly T[]
    • Optional size: number

    Returns T[][]