array-last
array-last copied to clipboard
The second argument maybe less than 0
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;