title: Filtering Object Array with a Given Range
body: <p>Looking for some possible solutions without using a for loop.</p>
  
  <p>I have an object that looks like this:</p>
  
  <p>Object:</p>
  
  <pre><code>[{id:1, score:1000, type:"hard"}, {id:2, score:3, type:"medium"}, {id:3, score:14, type:"extra hard"}, {id:5, score:-2, type:"easy"}]
  </code></pre>
  
  <p>Range:</p>
  
  <pre><code>var range={min:0, max:15}
  </code></pre>
  
  <p>Is there an elegant way of fetching all objects with a score between the range given? </p>
  
  <p>The given range would return:</p>
  
  <pre><code>[{id:2, score:3, type:"medium"}, {id:3, score:14, type:"extra hard"}]
  </code></pre>
  
  <p>I was checking lodash 3.0 but there doesn't seem to be a built in range filter for this. </p>