The type of the values in the object.
The object whose keys will be mapped.
The callback function that maps the keys.
The function that retrieves the keys of the object.
A new object with the keys mapped.
const object = { a: 1, b: 2, c: 3 };
const callback = (key: string, value: number) => key.toUpperCase();
objMapKeys(object, callback);
//=> { A: 1, B: 2, C: 3 }
Generated using TypeDoc
Maps the keys of an object using a callback function.