title: What is the best way to remove an element from a dense array with V8?
body: <p>Google V8 engine has a different internal representation for dense and sparse arrays. When an array goes from dense to sparse it causes dictionary mode to kick in, which is much slower.</p>
  
  <p>I can't seem to figure out what is the most efficient (fastest) way to remove an element from somewhere in a dense array to avoid going to a sparse array.</p>
  
  <p>The use case is very simple. Starting with an array <code>[8, 6, 1]</code> and remove the element <code>6</code> to go to <code>[8, 1]</code>.</p>