mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Convert remaining vars to let/const.
This commit is contained in:
@@ -25,18 +25,21 @@ function createFlow(fromRight) {
|
||||
return flatRest(funcs => {
|
||||
const length = funcs.length;
|
||||
const prereq = LodashWrapper.prototype.thru;
|
||||
|
||||
let func;
|
||||
let wrapper;
|
||||
let index = length;
|
||||
|
||||
if (fromRight) {
|
||||
funcs.reverse();
|
||||
}
|
||||
while (index--) {
|
||||
var func = funcs[index];
|
||||
func = funcs[index];
|
||||
if (typeof func != 'function') {
|
||||
throw new TypeError(FUNC_ERROR_TEXT);
|
||||
}
|
||||
if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
|
||||
var wrapper = new LodashWrapper([], true);
|
||||
wrapper = new LodashWrapper([], true);
|
||||
}
|
||||
}
|
||||
index = wrapper ? index : length;
|
||||
|
||||
Reference in New Issue
Block a user