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

    Type Parameters

    • T

    Parameters

    • left: T[]

      Array to start alternately merging from.

    • right: T[]

      Second array to merge.

    Returns T[]

    Zipped array.

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

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