I have a group of array in $scope.firstorder. For example:
Based on some condition like array contains an element Quantity. If Qunatity is zero i need to remove this array from the list of arrays.
How can I do that?
for (index in $scope.firstorder)
var quantity = $scope.firstorder[index].Quantity;
if (quantity == 0)
Remove the array element from $scope.firstOrder;