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