I have a group of arrays in $scope.firstorder
Based on some condition e.g. array contains an element Quantity. If Quantity is zero I need to remove this array from the list of arrays.
How can I do that?
Here is my code:
for (index in $scope.firstorder)
{
var quantity = $scope.firstorder[index][0].Quantity;
if (quantity == 0)
{
//Remove the array from $scope.firstOrder;
}
}