NSArray First Element
Probably one of the most useful methods to have in a category on an NSArray
is this method. It allows you easily and safely grab the first element of the array. This makes for a great counterpart to the already existing method -[someArray lastObject];
.