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

Function dropUndefinedKeys

packages/ember/index.js:105–115  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

103}
104
105function dropUndefinedKeys(obj) {
106 const newObj = {};
107
108 for (const key in obj) {
109 if (obj[key] !== undefined) {
110 newObj[key] = obj[key];
111 }
112 }
113
114 return newObj;
115}

Callers 1

includedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected