Function chunkedByCountKeepOrder

  • Splits the array content in size chunks of x elements each, keeps the original order of the elements.

    Type Parameters

    • T

    Parameters

    • array: T[]

      array to perform the operation.

    • size: number

      number of chunks.

    Returns T[][]

Generated using TypeDoc