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

Function deepClone

packages/utils/src/lib/transform.ts:32–34  ·  view source on GitHub ↗
(obj: T)

Source from the content-addressed store, hash-verified

30}
31
32export function deepClone<T>(obj: T): T {
33 return obj == null || typeof obj !== 'object' ? obj : structuredClone(obj);
34}
35
36export function factorOf<T>(items: T[], filterFn: (i: T) => boolean): number {
37 const itemCount = items.length;

Callers 2

scoreReportFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected