title: Given an Index, Return a range of Values from an Array
body: <p>First, apologies,this <em>should</em> be simple but I've had too much coffee and cannot wrap my tired brain around this (at least not without making it way more complicated than I know it should be).</p>
  
  <p>Lets say I have a simple Javascript array with a number of items in it:</p>
  
  <pre><code>var items = ["Hello", "This", "is", "an", "array", "with", 
               "a", "number", "of", "items", "in", "it"];
  </code></pre>
  
  <p>For whatever reason I'm suddenly interested in the 2nd value:</p>
  
  <pre><code>items[1]
  //-&gt; "This"
  </code></pre>
  
  <p>But I also want to get the previous value, and the next two values…</p>
  
  <pre><code>//-&gt; "Hello", "This", "is", "an"
  </code></pre>
  
  <p>To put it this way:</p>
  
  <pre><code>function getBatch(items, start) {
    // What goes here so it would return the results below?
  }
  
  getBatch(items, 0);
  //-&gt; ["it", "Hello", "This", "is"]
  
  getBatch(items, 4);
  //-&gt; ["an", "array", "with", "a"]
  
  getBatch(items, (items.length-1));
  //-&gt; ["in" "it", "Hello", "This"]
  </code></pre>
  
  <p>What is the code for the function <code>getBatch</code> (above) in order to return those result-sets?</p>
  
  <p>Please, no answers dependent on JQuery :)</p>