Interface ReadonlyMap<K, V>

    interface ReadonlyMap<K, V> {
        size: number;
        [iterator](): MapIterator<[K, V]>;
        entries(): MapIterator<[K, V]>;
        forEach(callbackfn: ((value: V, key: K, map: ReadonlyMap<K, V>) => void), thisArg?: any): void;
        get(key: K): V;
        has(key: K): boolean;
        keys(): MapIterator<K>;
        values(): MapIterator<V>;
    }

    Type Parameters

    • K
    • V

    Properties

    size: number

    Methods

    • Parameters

      • callbackfn: ((value: V, key: K, map: ReadonlyMap<K, V>) => void)
          • (value, key, map): void
          • Parameters

            Returns void

      • OptionalthisArg: any

      Returns void

    • Parameters

      • key: K

      Returns V

    • Parameters

      • key: K

      Returns boolean