Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
578 bytes
|
Line | |
---|
1 | export declare type Options = {
|
---|
2 | props?: (string | symbol)[];
|
---|
3 | nonenumerable?: boolean;
|
---|
4 | };
|
---|
5 | /**
|
---|
6 | * 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.
|
---|
7 | *
|
---|
8 | * @export
|
---|
9 | * @template T
|
---|
10 | * @param {T} target Target can be anything
|
---|
11 | * @param {Options} [options = {}] Options can be `props` or `nonenumerable`
|
---|
12 | * @returns {T} the target with replaced values
|
---|
13 | * @export
|
---|
14 | */
|
---|
15 | export declare function copy<T extends any>(target: T, options?: Options): T;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.