@rxap/utilities
Version:
A collection of utility functions, types and interfaces.
12 lines (11 loc) • 424 B
TypeScript
/**
* Copies an object.
*
* @private
* @param {*} value The value to be copied
* @param {Array} refFrom Array containing the source references
* @param {Array} refTo Array containing the copied source references
* @param {Boolean} deep Whether or not to perform deep cloning.
* @return {*} The copied value.
*/
export declare function clone<Data>(value: Data, refFrom?: any[], refTo?: any[], deep?: boolean): Data;