MCPcopy Create free account
hub / github.com/afar1/fieldtheory-cli / arrayField

Function arrayField

src/current.ts:127–129  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

125}
126
127function arrayField(value: unknown): unknown[] {
128 return Array.isArray(value) ? value : [];
129}
130
131function readLineMappingEntry(value: unknown): CurrentDocumentLineNumberEntry | null {
132 if (!value || typeof value !== 'object' || Array.isArray(value)) return null;

Callers 3

readLineMappingFunction · 0.85
readRelatedPagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected