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​
Name | Type |
---|---|
settings | IdentityMapSettings <Identity > |
Defined in​
Accessors​
[toStringTag]​
• get
[toStringTag](): string
Returns​
string
Implementation of​
Map.__@toStringTag@115566
Defined in​
size​
• get
size(): number
Returns​
number
Implementation of​
Map.size
Defined in​
Methods​
[iterator]​
â–¸ [iterator](): IterableIterator
<[Identity
, Model
]>
Returns​
IterableIterator
<[Identity
, Model
]>
Implementation of​
Map.__@iterator@115623
Defined in​
clear​
â–¸ clear(): void
Returns​
void
Implementation of​
Map.clear
Defined in​
delete​
â–¸ delete(identity
): boolean
Parameters​
Name | Type |
---|---|
identity | Identity |
Returns​
boolean
Implementation of​
Map.delete
Defined in​
entries​
â–¸ entries(): IterableIterator
<[Identity
, Model
]>
Returns​
IterableIterator
<[Identity
, Model
]>
Implementation of​
Map.entries
Defined in​
forEach​
â–¸ forEach(callbackFn
, thisArg?
): void
Parameters​
Name | Type |
---|---|
callbackFn | (record : Model , identity : Identity , map : IdentityMap <Identity , Model >) => void |
thisArg? | unknown |
Returns​
void
Implementation of​
Map.forEach
Defined in​
get​
â–¸ get(identity
): undefined
| Model
Parameters​
Name | Type |
---|---|
identity | Identity |
Returns​
undefined
| Model
Implementation of​
Map.get
Defined in​
has​
â–¸ has(identity
): boolean
Parameters​
Name | Type |
---|---|
identity | Identity |
Returns​
boolean
Implementation of​
Map.has
Defined in​
keys​
â–¸ keys(): IterableIterator
<Identity
>
Returns​
IterableIterator
<Identity
>
Implementation of​
Map.keys
Defined in​
set​
â–¸ set(identity
, record
): IdentityMap
<Identity
, Model
>
Parameters​
Name | Type |
---|---|
identity | Identity |
record | Model |
Returns​
IdentityMap
<Identity
, Model
>
Implementation of​
Map.set
Defined in​
values​
â–¸ values(): IterableIterator
<Model
>
Returns​
IterableIterator
<Model
>
Implementation of​
Map.values