utils

@cahil/utilsGlobalsaccessors

External module: accessors

Index

Interfaces

Functions

Functions

clone

clone<T>(original: T, options?: CloneOptions): T

Defined in src/accessors/clone.ts:23

Creates a deep clone of a value

Type parameters:

T

The type of the original value

Parameters:

Name Type Description
original T The value to clone
options? CloneOptions Config options

Returns: T

Returns the deep cloned value