Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Map<K, V>

Type parameters

  • K

  • V

Hierarchy

  • Map

Index

Properties

Methods

Properties

size

size: number

Methods

clear

  • clear(): void

delete

  • delete(key: K): boolean

forEach

  • forEach(callbackfn: function, thisArg?: any): void
  • Parameters

    • callbackfn: function
        • (value: V, index: K, map: Map<K, V>): void
        • Parameters

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

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(key: K): V

has

  • has(key: K): boolean

keys

  • keys(): Array<K>

set

  • set(key: K, value: V): Map<K, V>

values

  • values(): Array<V>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method