Skip to main content
Version: 0.17

Class: IdentityMap<Identity, Model>

Type parameters​

Name
Identity
Model

Implements​

  • Map<Identity, Model>

Constructors​

constructor​

• new IdentityMap<Identity, Model>(settings)

Type parameters​

Name
Identity
Model

Parameters​

NameType
settingsIdentityMapSettings<Identity>

Defined in​

identity-map.ts:11

Accessors​

[toStringTag]​

• get [toStringTag](): string

Returns​

string

Implementation of​

Map.__@toStringTag@115566

Defined in​

identity-map.ts:93


size​

• get size(): number

Returns​

number

Implementation of​

Map.size

Defined in​

identity-map.ts:89

Methods​

[iterator]​

â–¸ [iterator](): IterableIterator<[Identity, Model]>

Returns​

IterableIterator<[Identity, Model]>

Implementation of​

Map.__@iterator@115623

Defined in​

identity-map.ts:68


clear​

â–¸ clear(): void

Returns​

void

Implementation of​

Map.clear

Defined in​

identity-map.ts:72


delete​

â–¸ delete(identity): boolean

Parameters​

NameType
identityIdentity

Returns​

boolean

Implementation of​

Map.delete

Defined in​

identity-map.ts:40


entries​

â–¸ entries(): IterableIterator<[Identity, Model]>

Returns​

IterableIterator<[Identity, Model]>

Implementation of​

Map.entries

Defined in​

identity-map.ts:49


forEach​

â–¸ forEach(callbackFn, thisArg?): void

Parameters​

NameType
callbackFn(record: Model, identity: Identity, map: IdentityMap<Identity, Model>) => void
thisArg?unknown

Returns​

void

Implementation of​

Map.forEach

Defined in​

identity-map.ts:76


get​

â–¸ get(identity): undefined | Model

Parameters​

NameType
identityIdentity

Returns​

undefined | Model

Implementation of​

Map.get

Defined in​

identity-map.ts:16


has​

â–¸ has(identity): boolean

Parameters​

NameType
identityIdentity

Returns​

boolean

Implementation of​

Map.has

Defined in​

identity-map.ts:31


keys​

â–¸ keys(): IterableIterator<Identity>

Returns​

IterableIterator<Identity>

Implementation of​

Map.keys

Defined in​

identity-map.ts:58


set​

â–¸ set(identity, record): IdentityMap<Identity, Model>

Parameters​

NameType
identityIdentity
recordModel

Returns​

IdentityMap<Identity, Model>

Implementation of​

Map.set

Defined in​

identity-map.ts:23


values​

â–¸ values(): IterableIterator<Model>

Returns​

IterableIterator<Model>

Implementation of​

Map.values

Defined in​

identity-map.ts:64