Batman.BinarySetOperation. It implements an intersection operation: it contains members of both sets passed to its constructor without duplicates.
Batman.SetIntersection is a subclass of
Batman.Set, you can use it just like a
test 'SetIntersection contains the intersection of two sets', ->
left = new Batman.Set(1, 2, 3)
right = new Batman.Set(3, 4, 5)
operation = new Batman.SetIntersection(left, right)
ok !operation.has(1), 'doesnt have items from the left set only'
ok !operation.has(4), 'doesnt have items from the right set only'
ok operation.has(3), 'has items from both sets'