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

Function unique

packages/vite/rolldown.dts.config.ts:419–421  ·  view source on GitHub ↗
(arr: T[])

Source from the content-addressed store, hash-verified

417}
418
419function unique<T>(arr: T[]): T[] {
420 return Array.from(new Set(arr))
421}
422
423function addNodePrefix(): Plugin {
424 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected