MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getRecordArray

Function getRecordArray

src/main/import/snippets/snippetsLab.ts:49–52  ·  view source on GitHub ↗
(record: SnippetsLabRecord, key: string)

Source from the content-addressed store, hash-verified

47}
48
49function getRecordArray(record: SnippetsLabRecord, key: string) {
50 const value = record[key]
51 return Array.isArray(value) ? value.filter(isRecord) : []
52}
53
54function getContents(parsed: unknown): SnippetsLabRecord | null {
55 if (!isRecord(parsed) || !isRecord(parsed.contents)) {

Callers 4

getContentsFunction · 0.85
visitFunction · 0.85
getDescriptionFunction · 0.85
parseSnippetsLabFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected