You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
516 B
15 lines
516 B
1 month ago
|
type Options = {
|
||
|
props?: (string | symbol)[];
|
||
|
nonenumerable?: boolean;
|
||
|
};
|
||
|
/**
|
||
|
* Copy (clone) an object and all its props recursively to get rid of any prop referenced of the original object. Arrays are also cloned, however objects inside arrays are still linked.
|
||
|
*
|
||
|
* @param target Target can be anything
|
||
|
* @param [options = {}] Options can be `props` or `nonenumerable`
|
||
|
* @returns the target with replaced values
|
||
|
*/
|
||
|
declare function copy<T>(target: T, options?: Options): T;
|
||
|
|
||
|
export { Options, copy };
|