Created
December 3, 2014 22:54
-
-
Save benjaminsnorris/28a09a8c300b8d018f30 to your computer and use it in GitHub Desktop.
Compare arrays based on key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (![[array1 valueForKey:@"uniqueId"] isEqualToArray:[array2 valueForKey:@"uniqueId"]]) { | |
// The arrays contain the same objects that each have an attribute of "uniqueId" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment