MCPcopy Index your code
hub / github.com/angular-ui/ui-router / reverseComparator

Function reverseComparator

test/angular/1.2/angular.js:15783–15787  ·  view source on GitHub ↗
(comp, descending)

Source from the content-addressed store, hash-verified

15781 return 0;
15782 }
15783 function reverseComparator(comp, descending) {
15784 return toBoolean(descending)
15785 ? function(a,b){return comp(b,a);}
15786 : comp;
15787 }
15788 function compare(v1, v2){
15789 var t1 = typeof v1;
15790 var t2 = typeof v2;

Callers 1

orderByFilterFunction · 0.70

Calls 1

toBooleanFunction · 0.85

Tested by

no test coverage detected