title: Get steps of numbers between numbers in Javascript
body: <p>I’d like an array of 26 numbers starting at <code>1</code> and ending at <code>42</code>.</p>
  
  <p>I haven’t been able to find out how to do this (answers seem to be for finding all integers between two numbers vs. a specified number of steps). The numbers can be floats.</p>
  
  <p>Ideally I’d want this as a reusable function, something like:</p>
  
  <pre><code>numberRange(lower, upper, steps)
  </code></pre>
  
  <p>As a simple example if I did:</p>
  
  <pre><code>numberRange(2, 10, 5)
  </code></pre>
  
  <p>It would return: <code>[2, 4, 6, 8, 10]</code>.</p>