Function zip

  • Creates an iterable of tuple pairs that matches the iteration signature of an ES6 Map object.

    If the two provided iterables are different lengths, the resulting iterable will be the same length as the shorter of the two. The longer iterable will be terminated early.

    Type Parameters

    Type Parameters

    • K

    • V

    Parameters

    • keys: Iterable<K>

      The values to use as the first member of each pair.

    • values: Iterable<V>

      The values to use as the second member of each pair.

    Returns IterableIterator<[K, V]>

  • Type Parameters

    Type Parameters

    • K

    • V

    Parameters

    • keys: Iterable<K> | AsyncIterable<K>
    • values: Iterable<V> | AsyncIterable<V>

    Returns AsyncIterableIterator<[K, V]>

Generated using TypeDoc