Skip to content

crelte / std / clone

Function: clone() ​

ts
function clone<T>(value): T;

Creates a clone of the provided value. The values need to be either a primitive or implement the Cloneable interface.

Type Parameters ​

T ​

T extends CloneableOrPrimitive

Parameters ​

value ​

T

Returns ​

T