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

Function objectValue

lib/test/angular/1.8.0/angular.js:23968–23981  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

23966 }
23967
23968 function objectValue(value) {
23969 // If `valueOf` is a valid function use that
23970 if (isFunction(value.valueOf)) {
23971 value = value.valueOf();
23972 if (isPrimitive(value)) return value;
23973 }
23974 // If `toString` is a valid function and not the one from `Object.prototype` use that
23975 if (hasCustomToString(value)) {
23976 value = value.toString();
23977 if (isPrimitive(value)) return value;
23978 }
23979
23980 return value;
23981 }
23982
23983 function getPredicateValue(value, index) {
23984 var type = typeof value;

Callers 1

getPredicateValueFunction · 0.70

Calls 3

isFunctionFunction · 0.70
isPrimitiveFunction · 0.70
hasCustomToStringFunction · 0.70

Tested by

no test coverage detected