Skip to main content
Version: 0.17

Class: ImmutableMap<K, V>

Type parameters​

Name
K
V

Constructors​

constructor​

• new ImmutableMap<K, V>(base?)

Type parameters​

Name
K
V

Parameters​

NameType
base?ImmutableMap<K, V>

Defined in​

immutable-map.ts:6

Accessors​

size​

• get size(): number

Returns​

number

Defined in​

immutable-map.ts:14

Methods​

clear​

â–¸ clear(): void

Returns​

void

Defined in​

immutable-map.ts:18


entries​

â–¸ entries(): IterableIterator<[K, V]>

Returns​

IterableIterator<[K, V]>

Defined in​

immutable-map.ts:62


get​

â–¸ get(key): V

Parameters​

NameType
keyK

Returns​

V

Defined in​

immutable-map.ts:22


has​

â–¸ has(key): boolean

Parameters​

NameType
keyK

Returns​

boolean

Defined in​

immutable-map.ts:50


keys​

â–¸ keys(): IterableIterator<K>

Returns​

IterableIterator<K>

Defined in​

immutable-map.ts:54


remove​

â–¸ remove(key): void

Parameters​

NameType
keyK

Returns​

void

Defined in​

immutable-map.ts:38


removeMany​

â–¸ removeMany(keys): void

Parameters​

NameType
keysK[]

Returns​

void

Defined in​

immutable-map.ts:42


set​

â–¸ set(key, value): void

Parameters​

NameType
keyK
valueV

Returns​

void

Defined in​

immutable-map.ts:26


setMany​

â–¸ setMany(entries): void

Parameters​

NameType
entries[K, V][]

Returns​

void

Defined in​

immutable-map.ts:30


values​

â–¸ values(): IterableIterator<V>

Returns​

IterableIterator<V>

Defined in​

immutable-map.ts:58