mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Reduce _.has.
This commit is contained in:
@@ -9675,12 +9675,8 @@
|
||||
path = last(path);
|
||||
result = hasOwnProperty.call(object, path);
|
||||
}
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
var length = object.length;
|
||||
return isLength(length) && isIndex(path, length) &&
|
||||
(isArray(object) || isArguments(object) || isString(object));
|
||||
return result || (isLength(object.length) && isIndex(path, object.length) &&
|
||||
(isArray(object) || isArguments(object) || isString(object)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user