- Map<K, V, Iter>(iter?): Iter extends It<[unknown, unknown]>
? Map<AnyItV<Iter>[0], AnyItV<Iter>[1]>
: Promise<Map<AnyItV<Iter>[0], AnyItV<Iter>[1]>> Type Parameters
- K
- V
- Iter extends AnyIt<[K, V]> = It<[K, V]>
Returns Iter extends It<[unknown, unknown]>
? Map<AnyItV<Iter>[0], AnyItV<Iter>[1]>
: Promise<Map<AnyItV<Iter>[0], AnyItV<Iter>[1]>>
Transform an iterable yielding
key: value
values into aMap
object, like callingnew Map(iterable)
.