@refinio/one.models
Preparing search index...
utils/MapUtils
getOrCreate
Function getOrCreate
getOrCreate
<
M
extends
Map
<
any
,
any
>
>
(
map
:
M
,
k
:
MapKeyType
<
M
>
,
v
:
MapValueType
<
M
>
|
(
()
=>
MapValueType
<
M
>
)
,
)
:
MapValueType
<
M
>
This function returns a map entry or v that is added to the map.
Type Parameters
M
extends
Map
<
any
,
any
>
Parameters
map
:
M
k
:
MapKeyType
<
M
>
v
:
MapValueType
<
M
>
|
(
()
=>
MapValueType
<
M
>
)
Returns
MapValueType
<
M
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@refinio/one.models
Loading...
This function returns a map entry or v that is added to the map.