MCPcopy
hub / github.com/angular-ui/ui-router / getPredicateValue

Function getPredicateValue

test/angular/1.4/angular.js:20022–20033  ·  view source on GitHub ↗
(value, index)

Source from the content-addressed store, hash-verified

20020 }
20021
20022 function getPredicateValue(value, index) {
20023 var type = typeof value;
20024 if (value === null) {
20025 type = 'string';
20026 value = 'null';
20027 } else if (type === 'string') {
20028 value = value.toLowerCase();
20029 } else if (type === 'object') {
20030 value = objectValue(value, index);
20031 }
20032 return { value: value, type: type };
20033 }
20034
20035 function compare(v1, v2) {
20036 var result = 0;

Callers 1

getComparisonObjectFunction · 0.70

Calls 1

objectValueFunction · 0.70

Tested by

no test coverage detected