MCPcopy Index your code
hub / github.com/callstack/agent-device / stripUndefined

Function stripUndefined

src/contracts/screenshot.ts:172–174  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

170}
171
172function stripUndefined<T extends Record<string, unknown>>(value: T): T {
173 return Object.fromEntries(Object.entries(value).filter((entry) => entry[1] !== undefined)) as T;
174}

Callers 13

buildFlagsFunction · 0.90
buildMetaFunction · 0.90
leaseScopeFromRequestFunction · 0.90
leaseScopeFromOptionsFunction · 0.90
leaseScopeToRequestMetaFunction · 0.90
leaseScopeToCommandFlagsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected