SAP Cloud SDK for JavaScript - v4.1.1
    Preparing search index...
    • 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 Ⓒ 2025 SAP SE or an SAP affiliate company. All rights reserved.