Sets
import { arrayToSet, difference, intersection } from '@rtorcato/js-common/sets'
Exports
| Name | Summary |
|---|---|
arrayToSet | Converts an array to a set. |
difference | Returns the difference of two sets (elements in a not in b). |
intersection | Returns the intersection of two sets. |
isSubset | Returns true if set a is a subset of set b. |
isSuperset | Returns true if set a is a superset of set b. |
setToArray | Converts a set to an array. |
union | Returns the union of two sets. |