helpers.sets - ZeMA-gGmbH/NoPE-JS GitHub Wiki
helpers.sets
determineDifference<T>(set01, set02): Object
Helper Function which will determine the Difference between set01 and set02. If values are in set02 and not in set01 they will be putted into added. If items are in set01 but not in set02 they will be added to removed.
Export
| Name |
|---|
T |
| Name | Type | Description |
|---|---|---|
set01 |
Set<T> |
Base Set |
set02 |
Set<T> |
Set to compare it with |
Object
| Name | Type |
|---|---|
added |
Set<T> |
removed |
Set<T> |
difference<T>(set01, set02): Set<T>
Substracts set02 from set01
| Name |
|---|
T |
| Name | Type | Description |
|---|---|---|
set01 |
Set<T> |
Base Set |
set02 |
Set<T> |
The Set to substract |
Set<T>
union<T>(set01, set02): Set<T>
Unions the two sets
| Name |
|---|
T |
| Name | Type |
|---|---|
set01 |
Set<T> |
set02 |
Set<T> |
Set<T>