What is the Objective-C equivalent of the JavaScript concat() function?
concat()
Assuming that both objects are arrays, how would you combine them?
Here's a symmetric & simple way by just beginning with an empty array:
NSArray* newArray = @[]; newArray = [newArray arrayByAddingObjectsFromArray:firstArray]; newArray = [newArray arrayByAddingObjectsFromArray:secondArray];