Recursively maps the keys of an object using the mapper function.
Source object
Function applied to each key
A new object with mapped keys
mapKeysDeep({ a: 1, nested: { b: 2 } }, key => key.toUpperCase());// => { A: 1, NESTED: { B: 2 } } Copy
mapKeysDeep({ a: 1, nested: { b: 2 } }, key => key.toUpperCase());// => { A: 1, NESTED: { B: 2 } }
1.2.0
Recursively maps the keys of an object using the mapper function.