MCPcopy
hub / github.com/jquery/esprima / reverseComparator

Function reverseComparator

test/3rdparty/angular-1.2.5.js:14642–14646  ·  view source on GitHub ↗
(comp, descending)

Source from the content-addressed store, hash-verified

14640 return 0;
14641 }
14642 function reverseComparator(comp, descending) {
14643 return toBoolean(descending)
14644 ? function(a,b){return comp(b,a);}
14645 : comp;
14646 }
14647 function compare(v1, v2){
14648 var t1 = typeof v1;
14649 var t2 = typeof v2;

Callers 1

orderByFilterFunction · 0.85

Calls 1

toBooleanFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…