title: Adding multiple arguments list to an array depend on quantity
body: <p>I will try my best to explain what I need help with.</p>
  <p>I Trying to create a function where I can add new troops.
  The problem is that I want to add 2 different parameters;</p>
  <ol>
  <li>enemyID (which enemy I want to add to my new troops list)</li>
  <li>quantity (how many of that enemyID I want).</li>
  </ol>
  <p>My code;</p>
  <pre><code>class Enemy {
  constructor(name,hp,atk){
      this.name = name;
      this.hp = hp;
      this.maxHp = hp;
      this.atk = atk;
  }}
  
  
  const umeka = {
      enemy : {
          _data : [
              enemyID_0 = new Enemy(&quot;Rabbit&quot;,10,1),
              enemyID_1 = new Enemy(&quot;Spider&quot;,15,2),
              enemyID_2 = new Enemy(&quot;Orc&quot;,30,3),
              enemyID_3 = new Enemy(&quot;Rogue&quot;,33,3),
              enemyID_4 = new Enemy(&quot;Blob_red&quot;,20,2),
              enemyID_5 = new Enemy(&quot;Boss&quot;,200,9),
          ],
          troops : new Array,
          addTroops : function(enemyID,quantity){
              //Code here
          },
  
      },
      player : {
  
      }
  }
  </code></pre>
  <p>So let's assume that I want to create 2 troops list;</p>
  <ol>
  <li>3x enemyID_2 &amp; 1x enemyID_3</li>
  <li>1x enemyID_5 &amp; 4x enemyID_4</li>
  </ol>
  <p>I guess arguments would look like this;</p>
  <p>umeka.enemy.addTroops([this.enemyID_2,this.enemyID_3],[3,1])</p>
  <p>But not sure how to write addTroops function code, would be more than happy
  to hear from you guys how to solve this puzzle =)</p>
  <p>Never see any guide about array inside parameters, so dunno if that works.
  It will log both arrays if you just add console.log(enemyID, quantity).</p>