title: Using find method in Javascript for stacking numbers
body: <p>I want to stack numbers using the <code>find()</code> method in JavaScript, but I've just realized I don't know how to use it. I have this table:</p>
  
  <pre><code>0:{categoria: "CHILE", serie: "SERVICIOS", dataCount: 1}
  1:{categoria: "AUSTRALIA", serie: "CONSTRUCCION", dataCount: 1}
  2:{categoria: "EEUU", serie: "SERVICIOS", dataCount: 1}
  3:{categoria: "EEUU", serie: "CONSTRUCCION", dataCount: 4}
  4:{categoria: "ESPAÑA", serie: "CONSTRUCCION", dataCount: 22}
  5:{categoria: "ESPAÑA", serie: "SERVICIOS", dataCount: 14}
  6:{categoria: "EEUU", serie: "AUTOPISTAS", dataCount: 3}
  </code></pre>
  
  <p>For each <code>serie</code> available I need to compose an array of <code>dataCount</code> values per <code>categoria</code>. The program should push a <code>0</code> if there's no <code>dataCount</code> for a set of <code>serie</code> &amp; <code>categoria</code>. The <code>dataCount</code> arrays would look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/KQWnX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KQWnX.png" alt="enter image description here"></a></p>
  
  <p><code>series</code> are already stacked in an array </p>
  
  <pre><code>let series = ["SERVICIOS", "CONSTRUCCION", "AUTOPISTAS"]  
  let categorias = ["CHILE", "AUSTRALIA", "EEUU", "ESPAÑA"]. 
  </code></pre>
  
  <p>I thought I could use something like this, but I'm unsure about how to use the <code>find()</code> method:</p>
  
  <pre><code>for (var serie in series) {
          var dataCount = [];
          for (var categoria in categorias) {
              var num = 0;
              if (table.find(/*Pass current serie and categoria as parameters*/)){
                  num = table.find(/*Pass current serie and categoria as parameters*/);
              }
              dataCount.push(num);
          }
      }
  </code></pre>
  
  <p>Any other suggestions appreciated.</p>