Javascript function similar to Python range()
<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>
