MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / isRecord

Function isRecord

src/hooks/profilesStorage.ts:14–16  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

12}
13
14function isRecord(value: unknown): value is Record<string, unknown> {
15 return typeof value === 'object' && value !== null && !Array.isArray(value);
16}
17
18function normalizeActiveProfile(activeProfile: unknown, profiles: ProfilesData['profiles']): string | null {
19 if (typeof activeProfile !== 'string') return null;

Callers 1

normalizeProfilesDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected