mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v4.15.0.
This commit is contained in:
@@ -4,7 +4,6 @@ var castPath = require('./_castPath'),
|
||||
isIndex = require('./_isIndex'),
|
||||
isKey = require('./_isKey'),
|
||||
isLength = require('./isLength'),
|
||||
isString = require('./isString'),
|
||||
toKey = require('./_toKey');
|
||||
|
||||
/**
|
||||
@@ -35,7 +34,7 @@ function hasPath(object, path, hasFunc) {
|
||||
}
|
||||
var length = object ? object.length : 0;
|
||||
return !!length && isLength(length) && isIndex(key, length) &&
|
||||
(isArray(object) || isString(object) || isArguments(object));
|
||||
(isArray(object) || isArguments(object));
|
||||
}
|
||||
|
||||
module.exports = hasPath;
|
||||
|
||||
Reference in New Issue
Block a user