Predefinição:Testerag

function calcPokemonBoost(initBoost, endBoost, boostType, stonePrice){

   let responseBoost = [];    
   let usedStones = 0;
   let stonesForBoost = 1;
   for(i = 1; i <= endBoost; i++) {        
       usedStones += stonesForBoost;
       if ( i % boostType === 0) stonesForBoost++;
       const price = usedStones * stonePrice;
       responseBoost.push(
           {
               price: price,
               necessary_stones: usedStones,
               boost: i
           }
       );        
   }
   return responseBoost;

}