MCPcopy Create free account
hub / github.com/TanStack/ai / dedupeLabels

Function dedupeLabels

examples/ts-react-native-chat/src/App.tsx:163–172  ·  view source on GitHub ↗
(labels: Array<string>)

Source from the content-addressed store, hash-verified

161}
162
163function dedupeLabels(labels: Array<string>): Array<string> {
164 const seen = new Set<string>()
165
166 return labels.filter((label) => {
167 const key = label.toLocaleLowerCase()
168 if (seen.has(key)) return false
169 seen.add(key)
170 return true
171 })
172}
173
174function parseRawRecipe(raw: string | undefined): RecipeValue | undefined {
175 if (!raw) return undefined

Callers 1

RecipeHeroFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected