MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / reverseComparator

Function reverseComparator

code/songhop/www/lib/angular/angular.js:17569–17573  ·  view source on GitHub ↗
(comp, descending)

Source from the content-addressed store, hash-verified

17567 return 0;
17568 }
17569 function reverseComparator(comp, descending) {
17570 return descending
17571 ? function(a, b) {return comp(b,a);}
17572 : comp;
17573 }
17574 function compare(v1, v2) {
17575 var t1 = typeof v1;
17576 var t2 = typeof v2;

Callers 1

orderByFilterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected