title: How to take every 3rd element of an array
body: <p>I have an array, and want to return only every third element as a new array (starting at 0).</p>
  
  <p>For example:</p>
  
  <pre><code>let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
  let newArr = [1, 4, 7];
  </code></pre>
  
  <p>This is the way I am currently doing this:</p>
  
  <pre><code>let newArr = [];
  for(let x = 0; x &lt; arr.length; x += 3) {
     newArr.push(arr[x]);
  }
  return newArr;
  </code></pre>
  
  <p>Is there a way to do this with arr.map? Is there just an easier way to do this?</p>