title: How to count all values in array in Javascript if I am using Delete
body: <p>I am doing a delete on index of an array. Since doing a delete like this:</p>
  
  <pre><code>delete arr[index];
  </code></pre>
  
  <p>Will delete the index but will not affect the index of an array, that is perfectly what I need on my functionality.</p>
  
  <p>The problem that I am encountering is that its length is not changing:</p>
  
  <pre><code>console.log(arr.length);
  </code></pre>
  
  <p>Will return the same index as before. Is there a way to retrieve the actual number of values I have on my array if I did use the delete functionality?</p>