mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Apply let/const transform.
This commit is contained in:
@@ -12,8 +12,8 @@ import baseSlice from './_baseSlice.js';
|
||||
* @returns {Array} Returns the slice of `array`.
|
||||
*/
|
||||
function baseWhile(array, predicate, isDrop, fromRight) {
|
||||
var length = array.length,
|
||||
index = fromRight ? length : -1;
|
||||
const length = array.length;
|
||||
let index = fromRight ? length : -1;
|
||||
|
||||
while ((fromRight ? index-- : ++index < length) &&
|
||||
predicate(array[index], index, array)) {}
|
||||
|
||||
Reference in New Issue
Block a user