MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / unique

Function unique

shared/common-utils.ts:36–38  ·  view source on GitHub ↗
(arr: V[])

Source from the content-addressed store, hash-verified

34}
35
36export function unique<V>(arr: V[]): V[] {
37 return [...new Set(arr)];
38}
39
40export function intersection<V>(a: V[], b: V[]): V[] {
41 const B = new Set(b);

Callers 5

setupFiltersMethod · 0.85
getAvailableLanguagesMethod · 0.85
setCompilersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected