@newdash/newdash
Version:
javascript/typescript utility library
19 lines (18 loc) • 650 B
TypeScript
/**
* The base implementation of `clone` and `cloneDeep` which tracks
* traversed objects.
*
* @private
* @param value The value to clone.
* @param bitmask The bitmask flags.
* 1 - Deep clone
* 2 - Flatten inherited properties
* 4 - Clone symbols
* @param customizer The function to customize cloning.
* @param key The key of `value`.
* @param object The parent object of `value`.
* @param stack Tracks traversed objects and their clone counterparts.
* @returns Returns the cloned value.
*/
declare function baseClone(value: any, bitmask: any, customizer?: any, key?: any, object?: any, stack?: any): any;
export default baseClone;