MCPcopy
hub / github.com/vitejs/vite / unique

Function unique

packages/vite/src/node/utils.ts:913–915  ·  view source on GitHub ↗
(arr: T[])

Source from the content-addressed store, hash-verified

911}
912
913export function unique<T>(arr: T[]): T[] {
914 return Array.from(new Set(arr))
915}
916
917/**
918 * Returns resolved localhost address when `dns.lookup` result differs from DNS

Callers 5

getCssFilesForChunkFunction · 0.90
headTagInsertCheckFunction · 0.90
getConfigHashFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected