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

Function isPrimitive

test/angular/1.4/angular.js:19996–20005  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

19994 }
19995
19996 function isPrimitive(value) {
19997 switch (typeof value) {
19998 case 'number': /* falls through */
19999 case 'boolean': /* falls through */
20000 case 'string':
20001 return true;
20002 default:
20003 return false;
20004 }
20005 }
20006
20007 function objectValue(value, index) {
20008 // If `valueOf` is a valid function use that

Callers 1

objectValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected