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

Function isPrimitive

test/angular/1.7/angular.js:23892–23901  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

23890 }
23891
23892 function isPrimitive(value) {
23893 switch (typeof value) {
23894 case 'number': /* falls through */
23895 case 'boolean': /* falls through */
23896 case 'string':
23897 return true;
23898 default:
23899 return false;
23900 }
23901 }
23902
23903 function objectValue(value) {
23904 // If `valueOf` is a valid function use that

Callers 1

objectValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected