Type Parameters
- T extends object
- K extends string | number | symbol
- V
Parameters
- obj: T
- callback: ((value: T[K], key: K, obj: T) => V)
- (value, key, obj): V
Returns V
Returns {
[K in keyof T]: V
}
An object containing the new values produced by the callback
function.
Similar to Array.map, except that it maps over an object's own enumerable properties.