Function chunk

  • Description

    Split elements in the array into groups the length of size.

    Value

    • The array or string to process.

    Size

    • The length of every chunk.

    Returns

    The array of chunks

    Type Parameters

    • T

    Parameters

    • value: string | T[]
    • size: number = 1

    Returns T[][]

Generated using TypeDoc