Function Map

  • Transform an iterable yielding key: value values into a Map object, like calling new Map(iterable).

    Type Parameters

    • K
    • V
    • Iter extends AnyIt<[K, V]> = It<[K, V]>

    Parameters

    Returns Iter extends It<[unknown, unknown]>
        ? Map<AnyItV<Iter>[0], AnyItV<Iter>[1]>
        : Promise<Map<AnyItV<Iter>[0], AnyItV<Iter>[1]>>