Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Map<K, V, K, V, K, V>

Type parameters

  • K

  • V

  • K

  • V

  • K

  • V

Hierarchy

  • Map

Index

Properties

[Symbol.toStringTag]

[Symbol.toStringTag]: string

size

size: number

Methods

[Symbol.iterator]

  • Returns an iterable of entries in the map.

    Returns IterableIterator<[K, V]>

clear

  • clear(): void
  • Returns void

delete

  • delete(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

entries

  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[K, V]>

forEach

  • forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void
  • Parameters

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

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(key: K): V | undefined
  • Parameters

    • key: K

    Returns V | undefined

has

  • has(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

keys

  • Returns an iterable of keys in the map

    Returns IterableIterator<K>

set

  • set(key: K, value: V): this
  • Parameters

    • key: K
    • value: V

    Returns this

values

  • Returns an iterable of values in the map

    Returns IterableIterator<V>