MCPcopy Create free account
hub / github.com/SethGammon/Citadel / asArray

Function asArray

core/worktree/readiness.js:40–44  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

38 if (!effective.usable || effective.receipt?.authority.valid !== true) return {};
39 return configControl.readConfigFile(projectRoot).raw || {};
40}
41
42function asArray(value) {
43 if (Array.isArray(value)) return value;
44 if (value === null || value === undefined || value === '') return [];
45 return [value];
46}
47

Callers 1

normalizeProfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected