title: create array out of properties in javascript
body: <p>I am making a scheduler based on an initial date, an interval and a number of entries, id like to send this up as an array. Ive successfully made all the integer factors that would define the array, and maybe some kind of while loop is appropriate, but if anyone wants to help me work through this, id appreciate it.</p>
  <pre><code>const it = parseInt(iteration.installments);
  
  let int;
  
  if (iteration.interval === &quot;single&quot;) {
    int = 0;
  } else if (iteration.interval === &quot;weekly&quot;) {
    int = 7;
  } else if (iteration.interval === &quot;biweekly&quot;) {
    int = 14;
  } else if (iteration.interval === &quot;monthly&quot;) {
    int = 30;
  }
  
  const startDate = new Date(scheduleItem.thirdPaymentDate);
  </code></pre>
  <p>so from start date i want to create (it) entries (int) days apart from startdate and produce an array.  Sadly all the existing questions of this nature imply an end date, obviously its some kind of loop, but what?</p>