MCPcopy Index your code
hub / github.com/angular-ui/ui-router / isPrimitive

Function isPrimitive

test/angular/1.5/angular.js:22090–22099  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

22088 }
22089
22090 function isPrimitive(value) {
22091 switch (typeof value) {
22092 case 'number': /* falls through */
22093 case 'boolean': /* falls through */
22094 case 'string':
22095 return true;
22096 default:
22097 return false;
22098 }
22099 }
22100
22101 function objectValue(value) {
22102 // If `valueOf` is a valid function use that

Callers 1

objectValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected