CloneFunction<T> Type

CloneFunction = (value: T) => T

A function that, given a value of type T, returns a copy of that value. Such functions are used by various collection classes. It is up to the function to decide how deeply or shallowly the value is cloned. For example, shallowClone simply returns the input.

Defined in

Last Updated: 23 November, 2024