title: Create array of all integers between two numbers, inclusive, in Javascript/jQuery
body: <p>Say I have the following checkbox:</p>
  
  <pre><code>&lt;input type="checkbox" value="1-25" /&gt;
  </code></pre>
  
  <p>To get the two numbers that define the boundaries of range I'm looking for, I use the following jQuery:</p>
  
  <pre><code>var value = $(this).val();
  var lowEnd = Number(value.split('-')[0]);
  var highEnd = Number(value.split('-')[1]);
  </code></pre>
  
  <p>How do I then create an array that contains all integers between <code>lowEnd</code> and <code>highEnd</code>, including <code>lowEnd</code> and <code>highEnd</code> themselves? For this specific example, obviously, the resulting array would be:</p>
  
  <pre><code>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
  </code></pre>