array-last icon indicating copy to clipboard operation
array-last copied to clipboard

fix the second parameter bug in issue

Open caoxiaoshuai1 opened this issue 6 years ago • 2 comments

caoxiaoshuai1 avatar May 02 '18 10:05 caoxiaoshuai1

@jonschlinkert @doowb what do you guys think of this?

phated avatar May 13 '18 22:05 phated

I think it looks good. Using an if statement might be a little faster than Math.min though.

if (n > len) {
  n = len;
}

doowb avatar May 14 '18 15:05 doowb