@google-github-actions/actions-utils
@google-github-actions/actions-utils / clone / 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.
T
T
Object to deep clone.
boolean = true
Use structuredClone method (defaults to true).
T
Deep copy of input.