@pleisto/active-support
Preparing search index...
mapEntries
Variable mapEntries
Const
mapEntries
:
<
TKey
extends
string
|
number
|
symbol
,
TValue
,
TNewKey
extends
string
|
number
|
symbol
,
TNewValue
,
>
(
obj
:
Record
<
TKey
,
TValue
>
,
toEntry
:
(
key
:
TKey
,
value
:
TValue
)
=>
[
TNewKey
,
TNewValue
]
,
)
=>
Record
<
TNewKey
,
TNewValue
>
Map over all the keys to create a new object
Type declaration
<
TKey
extends
string
|
number
|
symbol
,
TValue
,
TNewKey
extends
string
|
number
|
symbol
,
TNewValue
,
>
(
obj
:
Record
<
TKey
,
TValue
>
,
toEntry
:
(
key
:
TKey
,
value
:
TValue
)
=>
[
TNewKey
,
TNewValue
]
,
)
:
Record
<
TNewKey
,
TNewValue
>
Type Parameters
TKey
extends
string
|
number
|
symbol
TValue
TNewKey
extends
string
|
number
|
symbol
TNewValue
Parameters
obj
:
Record
<
TKey
,
TValue
>
toEntry
:
(
key
:
TKey
,
value
:
TValue
)
=>
[
TNewKey
,
TNewValue
]
Returns
Record
<
TNewKey
,
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