Splits array into chunks of specified length

  • Type Parameters

    • T

    Parameters

    • chunkLength: number

      Maximum length of each chunk

    • xs: T[]

      Array to split

    Returns T[][]

    Array of chunks