title: Clearing an array content and reactivity issues using Vue.js
body: <p>A few years ago it was bad practice to do</p>
  <pre><code>array = [];
  </code></pre>
  <p>because if the array was referenced somewhere that reference wasn't updated or something like that.</p>
  <p>The correct way was supposed to be <code>array.length = 0;</code></p>
  <p>Anyway, JavaScript has been updated now, and there's a framework called Vue.js</p>
  <p>Vue does not catch  <code>array.length = 0;</code> so the property won't be reactive. But it does catch <code>array = [];</code></p>
  <p>Can we use <code>array = [];</code> now, or is JavaScript still broken?</p>