renovate/lib/util/clone.ts
Rhys Arkins 5d624ed484
feat(internal): request caching in http module (#6497)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-06-12 15:01:00 +02:00

5 lines
142 B
TypeScript

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