Home > doofinder > clone

clone() function

Create a copy of the provided data.

Signature:

export declare function clone(src: any): any;

Parameters

Parameter Type Description
src any The data to clone.

Returns:

any

A copy of the data.