Explode numerical range (e.g. '6-14') in Javascript : <p>I have a string representation of a numerical range</p>

<pre><code>var range = '6-14';
</code></pre>

<p>I want to create an array of integers represented by this range</p>

<pre><code>[6,7,8,9,10,11,12,13,14]
</code></pre>

<p>I could implement this simple enough as a <code>for</code> loop but that seems like a clunky, brute force method. Can this be done in a short or more elegant way?</p>
