Reactive arrays cannot be completely changed in VueJS. We need to change the elements. Here are ways to do this without losing reactivity. The first test is a reference test and is not applicable for reactive arrays.
Comparing performance of:[...] vs length + push + ... vs length + forEach + push vs length + forEach + index vs splice + push + ... vs splice + forEach + push vs splice + forEach + index vs length + Object.assign