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