Lodash remove items recursively
_.transform() the object to another object, and while passing the values to the new object, check if the value is an object and if it has the ‘reach’ property, and if so use _.omit() to get a new object without reach: var obj = { total: 350, SN1: { reach: 200, engagementRate: 1.35 }, SN2: … Read more