• 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.

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 3,491 bytes
    • Micro-dash: 197 bytes

    Type Parameters

    • T1
    • T2

    Parameters

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

    Returns [T1, T2][]

  • Type Parameters

    • T1
    • T2
    • T3

    Parameters

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

    Returns [T1, T2, T3][]

  • Type Parameters

    • T1
    • T2
    • T3
    • T4

    Parameters

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

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

  • Type Parameters

    • T

    Parameters

    • Rest ...arrays: readonly T[][]

    Returns T[][]

  • Type Parameters

    • T

    Parameters

    • Rest ...arrays: readonly (Nil | readonly T[])[]

    Returns (Nil | T)[][]