Underscore.m icon indicating copy to clipboard operation
Underscore.m copied to clipboard

Added max & min method

Open avalanched opened this issue 12 years ago • 1 comments

avalanched avatar Nov 07 '13 14:11 avalanched

:+1: thanks for submitting!

I'm not sure we should assume that the array contains NSNumbers. Also, what if the passed in block was simply an NSComparator? That way, we could simply define a helper block that invokes -compare: on the elements.

robb avatar Nov 11 '13 23:11 robb