• Split an array in equal chunks of the specified size

    Type Parameters

    • T

    Parameters

    • array: T[]

      Array to split

    • chunkSize: number

      Chunk size

    Returns T[][]