simpleClone
The simpleClone() function quickly duplicates a value without advanced logic, useful for shallow copies or simple structures.
Interactive example
Syntax
typescript
function simpleClone<
GenericInput extends unknown = unknown
>(
input: GenericInput
): GenericInput;Parameters
input: Value to duplicate.
Return value
A new identical value (low-cost copy).
See also
clone- Typed deep clone
