Preparing search index...
The search index is not available
Vertex Typescript SDK Documentation
Documentation
Vertex Utils
mapValues
Function mapValues
map
Values
<
TKey
,
TValue
,
TNewValue
>
(
obj
,
mapFn
)
:
Record
<
TKey
,
TNewValue
>
Map values of an object given mapFn. Avoids needing to pull in lodash
Type Parameters
TKey
extends
string
|
number
|
symbol
TValue
TNewValue
Parameters
obj
:
Record
<
TKey
,
TValue
>
mapFn
:
(
(
value
:
TValue
,
key
:
TKey
,
index
:
number
)
=>
TNewValue
)
(
value
,
key
,
index
)
:
TNewValue
Parameters
value
:
TValue
key
:
TKey
index
:
number
Returns
TNewValue
Returns
Record
<
TKey
,
TNewValue
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Documentation
Loading...
Map values of an object given mapFn. Avoids needing to pull in lodash