title: How to get object name data list with where condition in Javascript?
body: <p>I want get spesific data form my name object <strong>jumlahproduksi</strong> data but i got a problem not working with i tried this code.
  I use grep function because need where condition base city(lokasi)</p>
  <pre><code>var e = 0;    
  while (e &lt; kota.length) {
      var filtered = $.grep(data, function (el) {
          return el.lokasi == kota[e];
      });
      
      console.log(filtered);
   e = e+1;
  }
  </code></pre>
  <p>I have data like this:
  <a href="https://i.stack.imgur.com/6B0u6.png" rel="nofollow noreferrer">my data</a>
  I want the data model like this: Show <strong>jumlahproduksi</strong>
  <a href="https://i.stack.imgur.com/b7krA.png" rel="nofollow noreferrer">model data i want</a></p>
  <p>So Appreciate your help. Thanks</p>