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

Function isPojo

packages/core/src/utils/object.ts:243–247  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

241}
242
243function isPojo(input: unknown): input is Record<string, unknown> {
244 // Plain objects have Object as constructor or no constructor
245 const constructor = (input as object).constructor;
246 return constructor === Object || constructor === undefined;
247}
248
249/**
250 * Ensure that something is an object.

Callers 1

_dropUndefinedKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected