• Merge two arrays by alternately adding inserting values from both arrays, starting from the left.

    Example

    zip([1, 2], [3, 4, 5, 6]) results in [1, 3, 2, 4, 5, 6].

    Returns

    Zipped array.

    Type Parameters

    • T

    Parameters

    • left: T[]

      Array to start alternately merging from.

    • right: T[]

      Second array to merge.

    Returns T[]

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