title: Get array without element at index
body: <p>I implemented a function to get a shallow copy of an array without a specific element (using its index).</p>
  
  <p>But I have to call three methods to achieve this. Is there a better way of doing this?</p>
  
  <pre class="lang-js prettyprint-override"><code>const arrayWithoutElementAtIndex = function (arr, index) {
      return arr.slice(0, index).concat(arr.slice(index + 1))
  }
  
  arrayWithoutElementAtIndex([1, 2, 4, 8, 16, 32, 64], 3) // [1, 2, 4, 16, 32, 64]
  </code></pre>