MCPcopy Create free account
hub / github.com/code-pushup/cli / distinct

Function distinct

packages/utils/src/lib/transform.ts:28–30  ·  view source on GitHub ↗
(array: T[])

Source from the content-addressed store, hash-verified

26}
27
28export function distinct<T extends string | number | boolean>(array: T[]): T[] {
29 return [...new Set(array)];
30}
31
32export function deepClone<T>(obj: T): T {
33 return obj == null || typeof obj !== 'object' ? obj : structuredClone(obj);

Callers 3

loadRuleOptionsPerFileFunction · 0.90
loadRulesForLegacyConfigFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected