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

The second argument maybe less than 0

Open Harrymiracle opened this issue 6 years ago • 0 comments

Whe the second argument less than 0, there will be an error. Should we change the code like below to support negative number.

example:

 n = isNumber(n) ? Math.abs(+n) : 1;

Harrymiracle avatar Feb 16 '19 18:02 Harrymiracle