The type of the properties in the object.
The object to be mapped.
The callback function to apply to each valuekey pair.
The function used to get the keys of the object.
The mutated object.
const obj = { a: 1, b: 2, c: 3 };
const callback = (value: number, key: string) => value * 2;
objMapMutable(obj, callback);
//=> { a: 2, b: 4, c: 6 }
Generated using TypeDoc
Applies a callback function to each key-value pair in an object and mutates the object.