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