mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove unneeded branch of _.slice.
This commit is contained in:
@@ -3874,8 +3874,6 @@
|
|||||||
start = start == null ? 0 : (+start || 0);
|
start = start == null ? 0 : (+start || 0);
|
||||||
if (start < 0) {
|
if (start < 0) {
|
||||||
start = -start > length ? 0 : (length + start);
|
start = -start > length ? 0 : (length + start);
|
||||||
} else if (start > length) {
|
|
||||||
start = length;
|
|
||||||
}
|
}
|
||||||
end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);
|
end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);
|
||||||
if (end < 0) {
|
if (end < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user