API Reference > bentleyjs-core > Collections > Dictionary > constructor constructor Method Construct a new Dictionary<K, V>. Dictionary<K, V>(compareKeys: OrderedComparator<K, K>, cloneKey: CloneFunction<K> = shallowClone, cloneValue: CloneFunction<V> = shallowClone): Dictionary<K, V> Parameter Type Description compareKeys OrderedComparator<K, K> The function used to compare keys within the dictionary. cloneKey CloneFunction<K> The function invoked to clone a key for insertion into the dictionary. The default implementation simply returns its input. cloneValue CloneFunction<V> The function invoked to clone a value for insertion into the dictionary. The default implementation simply returns its input. Returns - Dictionary<K, V> Defined in core/bentley/src/Dictionary.ts Line 73 Last Updated: 12 June, 2024