• Chunks the array into smaller arrays of a specified size

    Example

    chunk([1, 2, 3, 4, 5], 2); // [[1,2],[3,4],[5]]
    

    Type Parameters

    • Value

    Parameters

    • array: Value[]
    • size: number

    Returns Value[][]

Generated using TypeDoc