Let's say I have two arrays:
NSArray * first = @[@"One", @"Two", @"Three"," @Four"];
NSArray * second = @[@"Four", @"Five", @"Six", @"One"];
I want to put the objects that are in both into another array:
NSArray * both = @[@"Four", @"One"];
Is there a more elegant way than going through each item of the first one and checking if its contained in the second?