MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / normalizeStringList

Function normalizeStringList

packages/mission-control/src/api.ts:1748–1761  ·  view source on GitHub ↗
(values: readonly string[] | null | undefined)

Source from the content-addressed store, hash-verified

1746}
1747
1748function normalizeStringList(values: readonly string[] | null | undefined): string[] {
1749 if (!Array.isArray(values)) {
1750 return [];
1751 }
1752 const normalized: string[] = [];
1753 for (const value of values) {
1754 const text = normalizeText(value);
1755 if (!text) {
1756 continue;
1757 }
1758 normalized.push(text);
1759 }
1760 return normalized;
1761}
1762
1763function isSameStringList(left: readonly string[], right: readonly string[]): boolean {
1764 if (left.length !== right.length) {

Callers 2

Calls 1

normalizeTextFunction · 0.70

Tested by

no test coverage detected