mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
5 lines
149 B
TypeScript
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));
|
|
}
|