Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 738 Bytes

File metadata and controls

41 lines (22 loc) · 738 Bytes

@google-github-actions/actions-utils


@google-github-actions/actions-utils / clone / deepClone

Function: deepClone()

deepClone<T>(input, useStructuredClone): T

Defined in: clone.ts:28

deepClone builds a deep copy (clone) of the given input. By default, it uses structuredClone if defined. Otherwise, it uses v8 to serialize and deserialize the input.

Type Parameters

T

T

Parameters

input

T

Object to deep clone.

useStructuredClone

boolean = true

Use structuredClone method (defaults to true).

Returns

T

Deep copy of input.