Get elements with even index

Implement function getItemsWithEvenIndexes which accepts array and returns new array of items with even index

console.log(getItemsWithEvenIndexes(["uno", "tuo", "tre", "quadro"]))
console.log(getItemsWithEvenIndexes([0,1,0,1,0,1]))