Sha256: 4ae17b7428d3908be426abc48faf1efca9bb140f2bac99ac1b9616c32044e613
Contents?: true
Size: 621 Bytes
Versions: 94
Compression:
Stored size: 621 Bytes
Contents
/** * @ngdoc filter * @name Bastion.subscriptions.filter:groupedFilter.filter.js * */ angular.module('Bastion.subscriptions').filter('groupedFilter', function () { return function (grouped, search) { var result = {}; angular.forEach(grouped, function (value, key) { if (angular.isUndefined(search)) { search = ""; } else { search = search.toLowerCase(); } if (key.toLowerCase().indexOf(search) > -1 || search === "") { result[key] = value; } }); return result; }; });
Version data entries
94 entries across 94 versions & 1 rubygems