@pleisto/active-support
Preparing search index...
mapValues
Variable mapValues
Const
mapValues
:
<
TValue
,
TKey
extends
string
|
number
|
symbol
,
TNewValue
>
(
obj
:
Record
<
TKey
,
TValue
>
,
mapFunc
:
(
value
:
TValue
,
key
:
TKey
)
=>
TNewValue
,
)
=>
Record
<
TKey
,
TNewValue
>
Map over all the keys to create a new object
Type declaration
<
TValue
,
TKey
extends
string
|
number
|
symbol
,
TNewValue
>
(
obj
:
Record
<
TKey
,
TValue
>
,
mapFunc
:
(
value
:
TValue
,
key
:
TKey
)
=>
TNewValue
,
)
:
Record
<
TKey
,
TNewValue
>
Type Parameters
TValue
TKey
extends
string
|
number
|
symbol
TNewValue
Parameters
obj
:
Record
<
TKey
,
TValue
>
mapFunc
:
(
value
:
TValue
,
key
:
TKey
)
=>
TNewValue
Returns
Record
<
TKey
,
TNewValue
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@pleisto/active-support
Loading...
Map over all the keys to create a new object