mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.16.0.
This commit is contained in:
@@ -10,12 +10,6 @@ define(['./_getTag', './isArguments', './isArray', './isArrayLike', './isBuffer'
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/** Built-in value references. */
|
||||
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||||
|
||||
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
|
||||
var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
|
||||
|
||||
/**
|
||||
* Checks if `value` is an empty object, collection, map, or set.
|
||||
*
|
||||
@@ -59,7 +53,7 @@ define(['./_getTag', './isArguments', './isArray', './isArrayLike', './isBuffer'
|
||||
if (tag == mapTag || tag == setTag) {
|
||||
return !value.size;
|
||||
}
|
||||
if (nonEnumShadows || isPrototype(value)) {
|
||||
if (isPrototype(value)) {
|
||||
return !nativeKeys(value).length;
|
||||
}
|
||||
for (var key in value) {
|
||||
|
||||
Reference in New Issue
Block a user