I have an array I want to increment over every other element. The 2nd element is always a repeat and I only want to process the first element. How can I get the map() method to increment by two and skip over one element?
let newArr = oldArr.map((item, i) => {
// process oldArr[0] item
// skips over oldArr[1] item
//...
});