title: Why does the array still have a non-zero length after deletion?
body: <p>I have the following code that outputs the length of an array, deletes it, and then outputs the new length:</p>
  
  <pre><code>console.log($scope.adviceList.activeAdvices.length); // *1*
  $scope.adviceList.activeAdvices.splice(id,1); // *id is a parameter*
  console.log($scope.adviceList.activeAdvices.length); // *0*
  
  console.log($scope.adviceList.activeAdvices.length); // *1*
  delete $scope.adviceList.activeAdvices[id];
  console.log($scope.adviceList.activeAdvices.length); // *0*
  console.log($scope.adviceList.activeAdvices); // *[]*
  </code></pre>
  
  <p>After the deletion, the array is correctly displayed as empty. Its length, however, is still 1.</p>