shallowClone Function

A CloneFunction that, given a value of type T, returns the same value.

Useful as a default argument for functions that can alternatively accept custom logic for cloning values of object type.

shallowClone<T>(value: T): T

@returns the input value.

Parameter Type Description
value T The value to clone.

Returns - T

the input value.

Defined in

Last Updated: 20 April, 2024