title: Access every other item in an array - JavaScript
body: <p>Is it possible for me to access every other item in an array? So basically, all items in positions 0, 2, 4, 6 etc.</p>
  
  <p>Here's my code if it helps:</p>
  
  <pre><code>function pushToHash(key, value) {
      for (var t = 0; t &lt; value.length; t++) {
      MQHash[key[t]] = value.slice(0, lineLength[t]);
      }
  }
  </code></pre>
  
  <p>So, I need to get every other value of <code>lineLength</code>. I only want this for <code>lineLength</code>, not <code>key</code>. I was thinking of doing a modulus, but wasn't sure how I'd implement it. Any ideas?</p>
  
  <p>Thanks in advance!</p>