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