The type of the values in the input object.
The object to map over.
The mapping function to apply to each value.
The function used to get the keys of the object.
A new object with the same keys as the input object, but with each value transformed by the callback function.
const object = { a: 1, b: 2, c: 3 }
const callback = (value: number, key: string) => value * 2
objMap(object, callback) //=> { a: 2, b: 4, c: 6 }
Generated using TypeDoc
Maps over the values of an object and returns a new object with the mapped values.