mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Convert remaining vars to let/const.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user