zeed
    Preparing search index...

    Function arrayBatches

    • Split an array into chunks of chunkLength (last chunk may be smaller).

      Type Parameters

      • T

        element type

      Parameters

      • arr: T[]

        input array

      • chunkLength: number

        chunk size (positive integer)

      Returns T[][]

      array of chunk arrays