Set with superpowers! 💪
This data structure inherit all methods and properties from the
Set
built-in.
$ yarn add @clarketm/superset
$ npm install @clarketm/superset --save
Construct a Set
Tests whether at least one element in the set passes the test implemented by the provided function
Name | Type | Attribute | Description |
---|---|---|---|
callback | Callback | callback function |
Test whether all elements in the set pass the test implemented by the provided function
Name | Type | Attribute | Description |
---|---|---|---|
callback | Callback | callback function |
Subset of a set
Name | Type | Attribute | Description |
---|---|---|---|
setB | Set | SetB |
Superset of a set
Name | Type | Attribute | Description |
---|---|---|---|
setB | Set | SetB |
Disjoint of a set
Name | Type | Attribute | Description |
---|---|---|---|
setB | Set | SetB |
Union of setA and setB
Name | Type | Attribute | Description |
---|---|---|---|
setB | Set | SetB |
Intersection of setA and setB
Name | Type | Attribute | Description |
---|---|---|---|
setB | Set | SetB |
Difference of setA and setB
Name | Type | Attribute | Description |
---|---|---|---|
setB | Set | SetB |
Symmetric difference of setA and setB
Name | Type | Attribute | Description |
---|---|---|---|
setB | Set | SetB |