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

Function getOwnProperties

packages/core/src/utils/object.ts:160–165  ·  view source on GitHub ↗

Filters out all but an object's own properties

(obj: unknown)

Source from the content-addressed store, hash-verified

158
159/** Filters out all but an object's own properties */
160function getOwnProperties(obj: unknown): { [key: string]: unknown } {
161 if (typeof obj === 'object' && obj !== null) {
162 return Object.fromEntries(Object.entries(obj));
163 }
164 return {};
165}
166
167/**
168 * Given any captured exception, extract its keys and create a sorted

Callers 1

convertToPlainObjectFunction · 0.85

Calls 1

entriesMethod · 0.65

Tested by

no test coverage detected