I have the following code that outputs the length of an array, deletes it, and then outputs the new length:
console.log($scope.adviceList.activeAdvices.lengt
I created a new array and push
ed elements on it to get the right length. For example, I had this for table headers:
var finalTableHeaderArray = [];
tableHeaderArray.forEach(function (element, index, array) {
if (removeDisplayItems.indexOf(index) === -1)
finalTableHeaderArray.push(element);
}, self);
Not exactly your question, but it could help others.