MCPcopy Create free account
hub / github.com/Noumena-Network/code / dedupePaths

Function dedupePaths

src/utils/settings/settings.ts:316–325  ·  view source on GitHub ↗
(paths: Array<string | undefined>)

Source from the content-addressed store, hash-verified

314}
315
316function dedupePaths(paths: Array<string | undefined>): string[] {
317 const results: string[] = []
318 const seen = new Set<string>()
319 for (const path of paths) {
320 if (!path || seen.has(path)) continue
321 seen.add(path)
322 results.push(path)
323 }
324 return results
325}
326
327function getSettingsReadCandidatePathsForSource(
328 source: SettingSource,

Calls 2

hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected