title: Using greater than with Lo Dash
body: <p>How do I filter an array using greater and less than with Lo Dash?</p>
  
  <p>Using Lo Dash's _.find <a href="https://lodash.com/docs/4.17.4#find" rel="nofollow noreferrer">demo data</a>: </p>
  
  <pre><code> var users = [
    { 'user': 'barney',  'age': 36, 'active': true },
    { 'user': 'fred',    'age': 40, 'active': false },
    { 'user': 'pebbles', 'age': 1,  'active': true }
  ];
  </code></pre>
  
  <p>I would like to find all users over 30. </p>
  
  <p><code>var over30 = _.find(users, function(o) { return o.age &gt; 30; });</code></p>
  
  <p>However this returns the first user, Barney, instead of Barney and Fred. </p>
  
  <p>I've tried different combinations of the following. </p>
  
  <pre><code>_.find(users, ['age', &gt; 30]);
  </code></pre>