title: omit nested properties with Lodash
body: <p>I'm trying to get rid of the properties <code>5MinuteRate</code> and <code>15MinuteRate</code>in the following object.</p>
  
  <pre><code>var object = { requestsPerSecond:
     { mean: 1710.2180279856818,
       count: 10511,
       'currentRate': 1941.4893498239829,
       '1MinuteRate': 168.08263156623656,
       '5MinuteRate': 34.74630977619571,
       '15MinuteRate': 11.646507524106095 } };
  </code></pre>
  
  <p>Lodash's omit()-function doesn't seem to work on nested objects. The following code doesn't work:</p>
  
  <pre><code>console.log(_.omit(object, 'requestsPerSecond.count'));
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I tried this but it doesn't work quite right:</p>
  
  <pre><code>var subObject = _.omit(object.requestsPerSecond, '5MinuteRate', '15MinuteRate');
  
  console.log(_.merge(object, subObject));
  </code></pre>