Clearing an array in 2019 : So a few years ago it was bad practice to do

    array = [];

because if the array was referenced somewhere that reference wasn't updated or smth like that.

The correct way was supposed to be `array.length = 0;`

Anyway, javascript has been updated now, and there's a framework called Vue.js

Vue does not catch  `array.length = 0;` so the property won't be reactive. But it does catch `array = [];`

My question is, can we use now  `array = [];`, or is javascript still broken?