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

Function compare

test/3rdparty/angular-1.2.5.js:14647–14660  ·  view source on GitHub ↗
(v1, v2)

Source from the content-addressed store, hash-verified

14645 : comp;
14646 }
14647 function compare(v1, v2){
14648 var t1 = typeof v1;
14649 var t2 = typeof v2;
14650 if (t1 == t2) {
14651 if (t1 == "string") {
14652 v1 = v1.toLowerCase();
14653 v2 = v2.toLowerCase();
14654 }
14655 if (v1 === v2) return 0;
14656 return v1 < v2 ? -1 : 1;
14657 } else {
14658 return t1 < t2 ? -1 : 1;
14659 }
14660 }
14661 };
14662}
14663

Callers 2

nodeLinkFnFunction · 0.70
orderByFilterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…