Vinyl
    Preparing search index...

    Function chunk

    • Splits an array into chunks of the specified size.

      Type Parameters

      • T

      Parameters

      • array: ArrayLike<T>

        The array to chunk

      • chunkSize: number

        Maximum size of each chunk

      Returns T[][]

      Array of chunks