I'm a coder who has worn a lot of hats, from individual contributor to lead engineer to "CTO" (yes, in quotes, make of that what you will!). I've a lot to learn and hopefully some to share as well.
The fact that this results in an out-of-order array called 'secondHalf' that has ALL the values on it is still annoying...but that's OPs fault not yours @randall
Without the spread operator, you can do:
I kind of prefer that way, since it doesn't involve extra syntax. But I'm used to using the spread operator now.
The fact that this results in an out-of-order array called 'secondHalf' that has ALL the values on it is still annoying...but that's OPs fault not yours @randall
const fullArray = [].concat(firstHalf, secondHalf);