Yes, you can do it like that. Array(...arr, item) probably works as well, not tested though. Or arr.concat(item). None of these do what push does though (append an item to the array and return the new array length), though that doesn’t matter a lot in this case.