angular.js dedup array filter

علی ذوالفقار
1402/02/27 10:34:06 (169)
  app.filter('dedup', function() {
    return function(input) {
        var dedupedArray = (input) ? input.filter((item, pos) => input.indexOf(item) === pos) : '' ;            
        return dedupedArray;
    } 
  });
Back