mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Should coerce float start and end params of _.slice to integers.
This commit is contained in:
@@ -2661,7 +2661,8 @@
|
||||
if (end < 0) {
|
||||
end += length;
|
||||
}
|
||||
length = start > end ? 0 : (end - start);
|
||||
length = start > end ? 0 : (end - start) >>> 0;
|
||||
start >>>= 0;
|
||||
|
||||
var result = Array(length);
|
||||
while (++index < length) {
|
||||
|
||||
Reference in New Issue
Block a user