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

@@ -12,14 +12,13 @@ import castPath from './_castPath.js';
* @returns {Object} Returns the new object.
*/
function basePickBy(object, paths, predicate) {
var index = -1,
length = paths.length,
result = {};
let index = -1;
const length = paths.length;
const result = {};
while (++index < length) {
var path = paths[index],
value = baseGet(object, path);
const path = paths[index];
const value = baseGet(object, path);
if (predicate(value, path)) {
baseSet(result, castPath(path, object), value);
}