@pleisto/active-support
    Preparing search index...

    Function zip

    • Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.

      Ex. const zipped = zip(['a', 'b'], [1, 2], [true, false]) // [['a', 1, true], ['b', 2, false]]

      Type Parameters

      • T1
      • T2
      • T3
      • T4
      • T5

      Parameters

      • array1: T1[]
      • array2: T2[]
      • array3: T3[]
      • array4: T4[]
      • array5: T5[]

      Returns [T1, T2, T3, T4, T5][]

    • Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.

      Ex. const zipped = zip(['a', 'b'], [1, 2], [true, false]) // [['a', 1, true], ['b', 2, false]]

      Type Parameters

      • T1
      • T2
      • T3
      • T4

      Parameters

      • array1: T1[]
      • array2: T2[]
      • array3: T3[]
      • array4: T4[]

      Returns [T1, T2, T3, T4][]

    • Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.

      Ex. const zipped = zip(['a', 'b'], [1, 2], [true, false]) // [['a', 1, true], ['b', 2, false]]

      Type Parameters

      • T1
      • T2
      • T3

      Parameters

      • array1: T1[]
      • array2: T2[]
      • array3: T3[]

      Returns [T1, T2, T3][]

    • Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.

      Ex. const zipped = zip(['a', 'b'], [1, 2], [true, false]) // [['a', 1, true], ['b', 2, false]]

      Type Parameters

      • T1
      • T2

      Parameters

      • array1: T1[]
      • array2: T2[]

      Returns [T1, T2][]