Options for a TreeMap.
TreeMap
const byLength: TreeMapOptions<string> = { comparator: (a, b) => a.length - b.length }const words = new TreeMap<string, number>(byLength) Copy
const byLength: TreeMapOptions<string> = { comparator: (a, b) => a.length - b.length }const words = new TreeMap<string, number>(byLength)
Optional
The order of the keys; two keys are the same key when it returns 0 for them. Natural order (numbers, strings, bigints, booleans, dates or [compareSymbol] objects) when omitted.
0
[compareSymbol]
Options for a
TreeMap.Example