title: JavaScript function similar to Python range()
body: <p>Is there a function in JavaScript similar to Python's <code>range()</code>?</p>
  
  <p>I think there should be a better way than to write the following lines every time:</p>
  
  <pre><code>array = new Array();
  for (i = 0; i &lt; specified_len; i++) {
      array[i] = i;
  }
  </code></pre>