MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / readBoolean

Function readBoolean

apps/api/src/lib/oauth/oauth.utils.ts:88–94  ·  view source on GitHub ↗
(obj: unknown, key: string)

Source from the content-addressed store, hash-verified

86};
87
88export const readBoolean = (obj: unknown, key: string): boolean => {
89 if (!isRecord(obj)) {
90 return false;
91 }
92
93 return obj[key] === true;
94};
95
96/**
97 * Best-effort split of a single display name into first / last. Used by

Callers 4

fetchProfileMethod · 0.90
fetchProfileMethod · 0.90
fetchProfileMethod · 0.90

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected