Given this JSON object, how does lodash remove the reach value from the objects?
{
total: 350,
SN1: {
reach: 200,
enga
_.mapValues(object, v => _.isObject(v)? _.omit(v, 'reach'): v)
_.mapValues
(object, [iteratee=_.identity])Creates an object with the same keys as object and values generated by running each own enumerable string keyed property of
objectthruiteratee. The iteratee is invoked with three arguments: (value, key, object)._.omit
(object, [props])creates an object composed of the own and inherited enumerable string keyed properties of
objectthat are not omitted.