mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Apply let/const transform.
This commit is contained in:
@@ -16,9 +16,9 @@ function createBaseEach(eachFunc, fromRight) {
|
||||
if (!isArrayLike(collection)) {
|
||||
return eachFunc(collection, iteratee);
|
||||
}
|
||||
var length = collection.length,
|
||||
index = fromRight ? length : -1,
|
||||
iterable = Object(collection);
|
||||
const length = collection.length;
|
||||
const iterable = Object(collection);
|
||||
let index = fromRight ? length : -1;
|
||||
|
||||
while ((fromRight ? index-- : ++index < length)) {
|
||||
if (iteratee(iterable[index], index, iterable) === false) {
|
||||
|
||||
Reference in New Issue
Block a user