UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

13 lines 571 B
/** * Deep clones a value. * * @param value - The value to clone. * @param visited - A WeakMap to track visited objects. * @returns A deep clone of the value. * * Warning: Only own enumerable properties of objects are cloned. Thus, not suitable for cloning custom instances with getters, setters, methods or static properties. * Warning: Functions are cloned by reference. * Warning: Circular references are cloned by reference. */ export declare function deepClone<T = any>(value: T, visited?: WeakMap<object, any>): T; //# sourceMappingURL=deep-clone.d.ts.map