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

Function getPredicateValue

lib/test/angular/1.5.0/angular.js:20500–20511  ·  view source on GitHub ↗
(value, index)

Source from the content-addressed store, hash-verified

20498 }
20499
20500 function getPredicateValue(value, index) {
20501 var type = typeof value;
20502 if (value === null) {
20503 type = 'string';
20504 value = 'null';
20505 } else if (type === 'string') {
20506 value = value.toLowerCase();
20507 } else if (type === 'object') {
20508 value = objectValue(value, index);
20509 }
20510 return { value: value, type: type };
20511 }
20512
20513 function compare(v1, v2) {
20514 var result = 0;

Callers 1

getComparisonObjectFunction · 0.70

Calls 1

objectValueFunction · 0.70

Tested by

no test coverage detected