I have a forEach like this
angular.forEach(game.market, function (market) {
if (availableMarketGroups[market.group_id]) {
availableMarketGroups[market.group_id].count++;
}
});
I need to check , if availableMarketGroups[market.group_id] number is duplicate , then ignore it !
For example i have id's : a , b , b , b , c , d --> final count is 6
I need also check , if it's duplicated , then ignore it and get final count 4