Function zip

  • Combine two arrays in single array of pairs

    The returned array is truncated to the length of the shorter of the two input arrays.

    Type Parameters

    • T1
    • T2

    Parameters

    • arr1: T1[]
    • arr2: T2[]

    Returns [T1, T2][]