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

Function objectValue

lib/test/angular/1.6.7/angular.js:22738–22751  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

22736 }
22737
22738 function objectValue(value) {
22739 // If `valueOf` is a valid function use that
22740 if (isFunction(value.valueOf)) {
22741 value = value.valueOf();
22742 if (isPrimitive(value)) return value;
22743 }
22744 // If `toString` is a valid function and not the one from `Object.prototype` use that
22745 if (hasCustomToString(value)) {
22746 value = value.toString();
22747 if (isPrimitive(value)) return value;
22748 }
22749
22750 return value;
22751 }
22752
22753 function getPredicateValue(value, index) {
22754 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