MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / pickObject

Function pickObject

packages/cli/src/auth/client.ts:223–231  ·  view source on GitHub ↗
(
  obj: Record<string, unknown>,
  key: string,
)

Source from the content-addressed store, hash-verified

221}
222
223function pickObject(
224 obj: Record<string, unknown>,
225 key: string,
226): Record<string, unknown> | undefined {
227 const v = obj[key];
228 return v && typeof v === "object" && !Array.isArray(v)
229 ? (v as Record<string, unknown>)
230 : undefined;
231}

Callers 1

extractUserInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected