mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 23:39:13 +00:00
10 lines
206 B
TypeScript
10 lines
206 B
TypeScript
import { configure } from 'safe-stable-stringify';
|
|
|
|
const stringify = configure({
|
|
deterministic: false,
|
|
});
|
|
|
|
export function clone<T>(input: T | null = null): T {
|
|
return JSON.parse(stringify(input));
|
|
}
|