sussy-util
Version:
Util package made by me
11 lines (10 loc) • 430 B
TypeScript
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;