union
algebra.union(a, b)
Returns a set that represents the union of A and B (A ∪ B).
algebra.union(
{start: 0, end: 99},
{start: 100, end: 199},
) //-> {start: 0, end: 199}
Returns
{Set|Boolean}
:
If an object is returned, it is the union of A and B (A ∪ B).
- If EMPTY is returned, that means there is no difference or the sets are not comparable.
- If UNDEFINABLE is returned, that means that B is a subset of A, but no set object can be returned that represents that set.
- If UNKNOWABLE is returned, that means a result is unable to be determined.