mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
*/
|
||||
function createBaseFor(fromRight) {
|
||||
return (object, iteratee, keysFunc) => {
|
||||
var index = -1,
|
||||
iterable = Object(object),
|
||||
props = keysFunc(object),
|
||||
length = props.length;
|
||||
const iterable = Object(object);
|
||||
const props = keysFunc(object);
|
||||
|
||||
let index = -1;
|
||||
let length = props.length;
|
||||
|
||||
while (length--) {
|
||||
var key = props[fromRight ? length : ++index];
|
||||
const key = props[fromRight ? length : ++index];
|
||||
if (iteratee(iterable[key], key, iterable) === false) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user