On this page

class webpack.SortableSet extends Set<T>
new SortableSet(values?): void
  • values <readonly T[]> | <null>
  • Returns: {SortableSet}
new SortableSet(iterable?): SortableSet<T>
Attributes
iterable:<Iterable>
< <T> , <any> , <any> > | <null>
Returns:
{SortableSet }
getFromCache(fn): void
  • fn {(set: SortableSet) => R}
  • Returns: {R}

Get data from cache


getFromUnorderedCache(fn): void
  • fn {(set: SortableSet) => R}
  • Returns: {R}

Get data from cache (ignoring sorting)


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

sortWith(sortFn?): void
  • sortFn {SortFunction}
  • Returns: <void>

Sort with a comparer function


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

Returns the raw array.