Skip to content

Documentation / listr2 / cloneObject

Function: cloneObject()

cloneObject<T>(obj): T

Deep clones a object in the easiest manner.

Type Parameters

T extends Record<PropertyKey, any>

Parameters

obj: T

Returns

T

Defined in

packages/listr2/src/utils/clone.ts:9