Friends, We are having an array categories of scope variable. Need to get count of checked(checked: true) categories without using for loop. Is there any way? Please suggest. Thanx.
$scope.categories = [
{categoryId : '1', checked: true},
{categoryId : '2', checked: true},
{categoryId : '3', checked: false},
{categoryId : '4', checked: false}
];