Last updated 4 years ago
Was this helpful?
Filter only elements with even indexes
const removeEveryOther = (arr) => arr.filter((v, i) => i % 2 === 0);