array-last
array-last copied to clipboard
fix the second parameter bug in issue
@jonschlinkert @doowb what do you guys think of this?
I think it looks good. Using an if statement might be a little faster than Math.min though.
if (n > len) {
n = len;
}