MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / isPrimitive

Function isPrimitive

web/static/bower_components/angular/angular.js:19458–19467  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

19456 }
19457
19458 function isPrimitive(value) {
19459 switch (typeof value) {
19460 case 'number': /* falls through */
19461 case 'boolean': /* falls through */
19462 case 'string':
19463 return true;
19464 default:
19465 return false;
19466 }
19467 }
19468
19469 function objectValue(value, index) {
19470 // If `valueOf` is a valid function use that

Callers 1

objectValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected