Convert remaining vars to let/const.

This commit is contained in:
John-David Dalton
2017-01-09 13:53:41 -08:00
parent 40e9c66ca6
commit c2208f82dc
12 changed files with 37 additions and 21 deletions

View File

@@ -17,12 +17,13 @@ import toKey from './_toKey.js';
function hasPath(object, path, hasFunc) {
path = castPath(path, object);
let index = -1,
length = path.length,
result = false;
let key;
let index = -1;
let length = path.length;
let result = false;
while (++index < length) {
var key = toKey(path[index]);
key = toKey(path[index]);
if (!(result = object != null && hasFunc(object, key))) {
break;
}