title: _.filter array of objects using a property with either value
body: <p>I'd like to filter an array of objects I only want objects with status equals to 0 or 1 this is my code.</p>
  
  <pre><code>_.filter(array, { status: 1 || 0 });
  </code></pre>
  
  <p>but its not working it only fetches objects with status equals to 1.</p>
  
  <pre><code>_.filter(array, function (a) { return a.status === 1 || a.status === 0 });
  </code></pre>
  
  <p>Works but I'd like to know the shorthand method. How do I  accomplish this without using the function method?</p>
  
  <p>Edit: 
  Okay, got it. What I was actually looking for is arrow function.</p>
  
  <pre><code>_.filter(array, a =&gt; a.status === 1 || a status === 0);
  </code></pre>