diff --git a/lodash.js b/lodash.js index 863c98f1c..ad6dc9f48 100644 --- a/lodash.js +++ b/lodash.js @@ -2756,7 +2756,9 @@ var length = array.length, index = fromRight ? length : -1; - while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {} + while ((fromRight ? index-- : ++index < length) && + predicate(array[index], index, array)) {} + return isDrop ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));