Constructors
constructor
- new MapImpl(kvs: [K, V][]): MapImpl
Properties
Private _kvs
_kvs: [K, V][]
Private _values
_values: V[]
Methods
Private _idx
-
Parameters
Returns number
delete
-
Parameters
Returns Map<K, V>
entries
- entries(): Iterator<[K, V], undefined, undefined>
-
Returns Iterator<[K, V], undefined, undefined>
forEach
- forEach<T, U>(f: (v: V, k: K, m: Map<K, V>) => T, u?: U): void
-
Type parameters
Parameters
-
f: (v: V, k: K, m: Map<K, V>) => T
-
- (v: V, k: K, m: Map<K, V>): T
-
Optional u: U
Returns void
get
-
Parameters
Returns V | undefined
has
-
Parameters
Returns boolean
keys
- keys(): Iterator<K, undefined, undefined>
-
Returns Iterator<K, undefined, undefined>
set
- set(k: K, v: V): Map<K, V>
-
Parameters
Returns Map<K, V>
values
- values(): Iterator<V, undefined, undefined>
-
Returns Iterator<V, undefined, undefined>