Javascript - Ein Array halbieren mittels Modulo

let foo = ["a", "b", "c", "d", "e", "f"]

let foo1 = []
let foo2 = []

for (const i in foo) {
  if (i % 2 === 0) {
    foo1.push(foo[i])
  }
  else {
    foo2.push(foo[i])
  }
}

console.log(foo1)
console.log(foo2)