MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / isPrimitive

Function isPrimitive

lib/test/angular/1.7.0/angular.js:23171–23180  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

23169 }
23170
23171 function isPrimitive(value) {
23172 switch (typeof value) {
23173 case 'number': /* falls through */
23174 case 'boolean': /* falls through */
23175 case 'string':
23176 return true;
23177 default:
23178 return false;
23179 }
23180 }
23181
23182 function objectValue(value) {
23183 // If `valueOf` is a valid function use that

Callers 1

objectValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected