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

Function isPrimitive

test/angular/1.6/angular.js:23054–23063  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

23052 }
23053
23054 function isPrimitive(value) {
23055 switch (typeof value) {
23056 case 'number': /* falls through */
23057 case 'boolean': /* falls through */
23058 case 'string':
23059 return true;
23060 default:
23061 return false;
23062 }
23063 }
23064
23065 function objectValue(value) {
23066 // If `valueOf` is a valid function use that

Callers 1

objectValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected