• Split the given array in chunks.

    Returns

    Two dimensional array with arrays of length chunkSize. The last subarray could be shorter.

    Type Parameters

    • T

    Parameters

    • arr: T[]

      Array to be split into chunks.

    • chunkSize: number

      Size of the chunks.

    Returns T[][]

Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.