MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isScalar

Function isScalar

packages/ember/index.js:91–99  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

89}
90
91function isScalar(val) {
92 return (
93 typeof val === 'undefined' ||
94 typeof val === 'string' ||
95 typeof val === 'boolean' ||
96 typeof val === 'number' ||
97 val === null
98 );
99}
100
101function isPlainObject(obj) {
102 return typeof obj === 'object' && obj.constructor === Object && obj.toString() === '[object Object]';

Callers 1

isSerializableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected