const [firstHalf, secondHalf] = arr.reduce((a, c, i, n) => { a[+(i > n.length * 0.5)].push(c) return a }, [[], []])