title: How to get/filter all results from JSON file with underscore.js
body: <p>I have this (<em>shortened for question</em>) JSON file:</p>
  
  <pre><code>[
    {
     "product":"aardappelen gebakken",
     "quantity":"100gr",
     "carbohydrates":"19,3"
    },
    {
     "product":"aardappelen pikant",
     "quantity":"100gr",
     "carbohydrates":"3"
    },
  
    {
     "product":"aardappelmeel",
     "quantity":"100gr",
     "carbohydrates":"80"
    }
  ]
  </code></pre>
  
  <p>Wat i want to do is:</p>
  
  <p>search for a product, and result all of its content, like when i would search for "aardappelmeel", i get product, quantity and carbohydrates key value, i do this with this code:</p>
  
  <p><em>the search term is hardcoded for the moment, this will be a var later one.</em></p>
  
  <pre><code>$(function() {
  
      $.getJSON( "js/data.json").fail(function(jqxhr, textStatus, error) {
      var err = textStatus + ", " + error;
      console.log( "Request Failed: " + err );
      }).done(function(data) {
      var carbohydratesResult = getCarbohydrates(data, 'aardappelmeel');
      console.log(carbohydratesResult);
    });
  
  });
  
  function getCarbohydrates(arr, searchTerm){
    var result;
    if(searchTerm === '') {
      result = 'No searchterm';
    }
    else {
      result = _.where(arr, {product: searchTerm});
    }
   return result;
  }
  </code></pre>
  
  <p>This gets 1 result:</p>
  
  <p><img src="https://i.stack.imgur.com/JQW7s.png" alt="enter image description here"></p>
  
  <p><strong>Question:</strong> When i search for "aardappelen", i get no result, and it should be 2, because there are 2 products that contain the name "aardappelen". How do i do this?</p>
  
  <p>I use jQuery, Underscore. If Underscore is not needed for this, fine by me, please show me how i modify my code to get more then one result when "product" value contains the search term.</p>