mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -4,7 +4,8 @@ var castPath = require('./_castPath'),
|
||||
isIndex = require('./_isIndex'),
|
||||
isKey = require('./_isKey'),
|
||||
isLength = require('./isLength'),
|
||||
isString = require('./isString');
|
||||
isString = require('./isString'),
|
||||
toKey = require('./_toKey');
|
||||
|
||||
/**
|
||||
* Checks if `path` exists on `object`.
|
||||
@@ -23,7 +24,7 @@ function hasPath(object, path, hasFunc) {
|
||||
length = path.length;
|
||||
|
||||
while (++index < length) {
|
||||
var key = path[index];
|
||||
var key = toKey(path[index]);
|
||||
if (!(result = object != null && hasFunc(object, key))) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user