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

Function uniqueStrings

src/main/import/snippets/normalizers.ts:67–82  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

65}
66
67export function uniqueStrings(values: string[]): string[] {
68 const result: string[] = []
69 const seen = new Set<string>()
70
71 for (const value of values) {
72 const key = value.toLowerCase()
73 if (seen.has(key)) {
74 continue
75 }
76
77 seen.add(key)
78 result.push(value)
79 }
80
81 return result
82}

Callers 4

getPrefixTagsFunction · 0.90
getTagsFunction · 0.90
getTagsFunction · 0.90
getDescriptionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected