Tweakr
    Preparing search index...

    Function zip

    • Creates an array of grouped elements, where the first element contains first elements of each array.

      Parameters

      • ...arrays: any[][]

        Arrays to zip

      Returns any[][]

      Zipped array

      zip([1,2], ['a','b']); // [[1,'a'], [2,'b']]
      

      1.2.0