Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,4 +1,4 @@
import baseSlice from './baseSlice.js';
import baseSlice from './baseSlice.js'
/**
* The base implementation of methods like `dropWhile` and `takeWhile`.
@@ -11,15 +11,15 @@ import baseSlice from './baseSlice.js';
* @returns {Array} Returns the slice of `array`.
*/
function baseWhile(array, predicate, isDrop, fromRight) {
const length = array.length;
let index = fromRight ? length : -1;
const length = array.length
let index = fromRight ? length : -1
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));
: baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index))
}
export default baseWhile;
export default baseWhile