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

Source

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