@vivliostyle/core
Preparing search index...
base
mapObj
Function mapObj
mapObj
<
P
,
R
>
(
obj
:
{
[
key
:
string
]:
P
}
,
fn
:
(
p1
:
P
,
p2
:
string
)
=>
R
,
)
:
{
[
key
:
string
]:
R
}
Apply function to each value of the object
Type Parameters
P
R
Parameters
obj
:
{
[
key
:
string
]:
P
}
fn
:
(
p1
:
P
,
p2
:
string
)
=>
R
second parameter is the key
Returns
{
[
key
:
string
]:
R
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@vivliostyle/core
Loading...
Apply function to each value of the object