intersection
algebra.intersection(a, b)
Returns a set that represents the intersection of sets A and B (A ∩ B).
algebra.intersection(
{completed: true, due: "tomorrow"},
{completed: true, type: "critical"},
) //-> {completed: true, due: "tomorrow", type: "critical"}
Returns
{Set|Boolean}
:
If an object is returned, it represents the intersection of sets 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.