API Reference > bentleyjs-core > Collections > CloneFunction CloneFunction<T> Type alias A function that, given a value of type T, returns a copy of that value. Such functions are used by various collection classes in the iModel.js library. It is up to the function to decide how deeply or shallowly the value is cloned. For example, shallowClone simply returns the input. CloneFunction = (value: T) => T Defined in core/bentley/src/SortedArray.ts Line 16 Last Updated: 15 June, 2021