Apply more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-08 23:38:19 -08:00
parent ca9e6fa087
commit 4d0c15b49e
115 changed files with 621 additions and 613 deletions

View File

@@ -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;
}