API Reference > bentleyjs-core > Collections > Dictionary > constructor constructor Method Construct a new Dictionary<K, V>. Dictionary(compareKeys: OrderedComparator<K>, cloneKey: CloneFunction<K> = shallowClone, cloneValue: CloneFunction<V> = shallowClone): Dictionary Parameter Type Description compareKeys OrderedComparator<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 Defined in core/bentley/src/Dictionary.ts Line 65 Last Updated: 13 June, 2024