Preparing search index...
The search index is not available
@pleisto/active-support
@pleisto/active-support
mapKeys
Function mapKeys
map
Keys
<
TValue
,
TKey
,
TNewKey
>
(
obj
,
mapFunc
)
:
Record
<
TNewKey
,
TValue
>
Map over all the keys of an object to return a new object
Type Parameters
TValue
TKey
extends
string
|
number
|
symbol
TNewKey
extends
string
|
number
|
symbol
Parameters
obj
:
Record
<
TKey
,
TValue
>
mapFunc
:
(
(
key
,
value
)
=>
TNewKey
)
(
key
,
value
)
:
TNewKey
Parameters
key
:
TKey
value
:
TValue
Returns
TNewKey
Returns
Record
<
TNewKey
,
TValue
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@pleisto/active-support
Loading...
Map over all the keys of an object to return a new object