renovate/lib/util/clone.ts

5 lines
149 B
TypeScript

import safeStringify from 'fast-safe-stringify';
export function clone<T>(input: T | null = null): T {
return JSON.parse(safeStringify(input));
}