Function zipArrays

  • Function to ZIP to Arrays.

    Example 1:

    const a = [1,2,3,4]
    const b = ["a","b","c","d"]
    zipArrays(a,b) // => [(1,"a"), (2, "b"), ...]

    Type Parameters

    • T

    • K

    Parameters

    • arr1: T[]
    • arr2: K[]

    Returns [T, K][]

Generated using TypeDoc