On this page

class SortableSet extends Set<T>
Source Code: lib/util/SortableSet.js#L15

A subset of Set that offers sorting functionality

new SortableSet(values?): SortableSet<T>
Attributes
values:readonly T[] | null
Returns:SortableSet<T>
new SortableSet(iterable?): SortableSet<T>
Attributes
iterable:Iterable<T, any, any> | null
Returns:SortableSet<T>
sortableSet.getFromCache(fn): R
Source Code: lib/util/SortableSet.js#L115
Attributes
fn:(set: SortableSet<T>) => R
Returns:R

Get data from cache

sortableSet.getFromUnorderedCache(fn): R
Source Code: lib/util/SortableSet.js#L136
Attributes
fn:(set: SortableSet<T>) => R
Returns:R

Get data from cache (ignoring sorting)

sortableSet.sort(): SortableSet<T>
Source Code: lib/util/SortableSet.js#L104
Returns:SortableSet<T>
sortableSet.sortWith(sortFn?): void
Source Code: lib/util/SortableSet.js#L88
Attributes
sortFn:SortFunction<T>

Sort with a comparer function

sortableSet.toJSON(): T[]
Source Code: lib/util/SortableSet.js#L177
Returns:T[]

Returns the raw array.