mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Bump to v4.10.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var baseCastPath = require('./_baseCastPath'),
|
||||
var castPath = require('./_castPath'),
|
||||
isArguments = require('./isArguments'),
|
||||
isArray = require('./isArray'),
|
||||
isIndex = require('./_isIndex'),
|
||||
@@ -16,7 +16,7 @@ var baseCastPath = require('./_baseCastPath'),
|
||||
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
||||
*/
|
||||
function hasPath(object, path, hasFunc) {
|
||||
path = isKey(path, object) ? [path] : baseCastPath(path);
|
||||
path = isKey(path, object) ? [path] : castPath(path);
|
||||
|
||||
var result,
|
||||
index = -1,
|
||||
|
||||
Reference in New Issue
Block a user