From e0f59eccf0808b51deb227129850ce9809cbdac4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 26 Aug 2015 21:43:52 -0700 Subject: [PATCH] Formatting nit in `baseWhile`. --- lodash.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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));