title: Filter array for every 3rd element
body: <p>I'm having trouble to create an array based on a dataset, I want to filter just some elements of it by choosing one element every 3. Could you help me with this?</p>
  <p>This is what I did.</p>
  <p>var example = dataset.map(function(d){return d.values
  .filter(function(d,i){return (i+1)%3===0;})});</p>
  <p>the dataset log: {name:&quot;example1&quot;, values: Array(46)}</p>
  <p>After applying the new array looks like this. And I'm looking for this [219, 2301, 239.....373]</p>
  <p><a href="https://i.stack.imgur.com/WCEAP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WCEAP.png" alt="enter image description here" /></a></p>
  <p>Thanks</p>