Creates a new object with the same keys as the input object, but with values set to the result of mapCallback for each property. Automatically handles an async mapCallback.
mapCallback
import {mapObjectValues} from '@augment-vir/common';mapObjectValues({a: 1, b: 2}, (key, value) => { return `key-${key} value-${value}`;});// output is `{a: 'key-a value-1', b: 'key-b value-2'}` Copy
import {mapObjectValues} from '@augment-vir/common';mapObjectValues({a: 1, b: 2}, (key, value) => { return `key-${key} value-${value}`;});// output is `{a: 'key-a value-1', b: 'key-b value-2'}`
@augment-vir/common
Creates a new object with the same keys as the input object, but with values set to the result of
mapCallback
for each property. Automatically handles an asyncmapCallback
.