title: lodash remove object from
body: <p>I have a JSON response like this:</p>
  <pre><code>{ 
    id_order: '123123asdasd',
    products: [ 
      { 
        description: 'Product 1 description',
        comments: [
          { 
            id_comment: 1,
            text: 'comment1'
          },
          { 
            id_comment: 2,
            text: 'comment2'
          }
        ] 
      }
    ]
  }
  </code></pre>
  <p>How can I remove, with <a href="http://lodash.com/docs" rel="nofollow noreferrer">lodash</a>, one object which has an <em>id_comment</em> that is equal to 1, for example?</p>
  <p>Tried using <code>_.remove</code> without success.</p>
  <h2>Solution</h2>
  <p><a href="https://jsfiddle.net/baumannzone/o9yuLuLy/" rel="nofollow noreferrer">https://jsfiddle.net/baumannzone/o9yuLuLy/</a></p>