MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / getPredicateValue

Function getPredicateValue

lib/test/angular/1.4.3/angular.js:19339–19350  ·  view source on GitHub ↗
(value, index)

Source from the content-addressed store, hash-verified

19337 }
19338
19339 function getPredicateValue(value, index) {
19340 var type = typeof value;
19341 if (value === null) {
19342 type = 'string';
19343 value = 'null';
19344 } else if (type === 'string') {
19345 value = value.toLowerCase();
19346 } else if (type === 'object') {
19347 value = objectValue(value, index);
19348 }
19349 return { value: value, type: type };
19350 }
19351
19352 function compare(v1, v2) {
19353 var result = 0;

Callers 1

getComparisonObjectFunction · 0.70

Calls 1

objectValueFunction · 0.70

Tested by

no test coverage detected