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 true
is returned, that means that an intersection exists, but no set object
can be returned that represents that set.
If false
is returned, that means there is no intersection.