On this page

class webpack.SortableSet extends Set<T>
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>
getFromCache(fn): R
Attributes
fn:(set: SortableSet<T>) => R
Returns:R

Get data from cache


getFromUnorderedCache(fn): R
Attributes
fn:(set: SortableSet<T>) => R
Returns:R

Get data from cache (ignoring sorting)


sort(): SortableSet<T>
Returns:SortableSet<T>

sortWith(sortFn?): void
Attributes
sortFn:SortFunction<T>
Returns:void

Sort with a comparer function


toJSON(): T[]
Returns:T[]

Returns the raw array.

Attributes
a:T
b:T
Returns:number