Some sort of data
Optionaloptions: { prune?: boolean; strict?: boolean } = {}Options to configure the behaviour of deepClone
Optionalprune?: booleanDelete object entries with undefined values
Optionalstrict?: booleanThrow an Error if deepClone is unable to clone something instead of returning the original
The clone of that data
Quickly clone a simple piece of data, returning a copy which can be mutated safely. This method DOES support recursive data structures containing inner objects or arrays. This method DOES NOT support cyclical data structures. This method DOES NOT support advanced object types like Set, Map, or other specialized classes.