MCPcopy Index your code
hub / github.com/actions/github-script / stripUndefined

Function stripUndefined

src/create-configured-getoctokit.ts:7–11  ·  view source on GitHub ↗

* Strip keys whose value is `undefined` so they don't clobber defaults * during object spread (e.g. `{baseUrl: undefined}` would wipe a GHES URL).

(obj: Record<string, unknown>)

Source from the content-addressed store, hash-verified

5 * during object spread (e.g. `{baseUrl: undefined}` would wipe a GHES URL).
6 */
7function stripUndefined(obj: Record<string, unknown>): Record<string, unknown> {
8 return Object.fromEntries(
9 Object.entries(obj).filter(([, v]) => v !== undefined)
10 )
11}
12
13/**
14 * Creates a wrapped getOctokit that inherits default options and plugins.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected