UNPKG

sussy-util

Version:
11 lines (10 loc) 430 B
import MutableObject from "../Types/MutableObject"; /** * Recursively clones an object or array. * * @template T * @param {MutableObject<T> | MutableObject<T>[]} obj - The object or array to clone. * @returns {MutableObject<T> | MutableObject<T>[]} - A clone of the object or array. */ declare const clone: (obj: MutableObject<any> | MutableObject<any>[]) => MutableObject<any> | MutableObject<any>[]; export default clone;