MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / getPredicateValue

Function getPredicateValue

web/static/bower_components/angular/angular.js:19484–19495  ·  view source on GitHub ↗
(value, index)

Source from the content-addressed store, hash-verified

19482 }
19483
19484 function getPredicateValue(value, index) {
19485 var type = typeof value;
19486 if (value === null) {
19487 type = 'string';
19488 value = 'null';
19489 } else if (type === 'string') {
19490 value = value.toLowerCase();
19491 } else if (type === 'object') {
19492 value = objectValue(value, index);
19493 }
19494 return { value: value, type: type };
19495 }
19496
19497 function compare(v1, v2) {
19498 var result = 0;

Callers 1

getComparisonObjectFunction · 0.85

Calls 1

objectValueFunction · 0.85

Tested by

no test coverage detected