Bump to v4.16.0.

This commit is contained in:
John-David Dalton
2016-09-17 22:28:43 -07:00
parent 28663c1e27
commit 94ac73824f
102 changed files with 526 additions and 320 deletions

View File

@@ -16,12 +16,6 @@ var objectProto = Object.prototype;
/** 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.
*
@@ -65,7 +59,7 @@ function isEmpty(value) {
if (tag == mapTag || tag == setTag) {
return !value.size;
}
if (nonEnumShadows || isPrototype(value)) {
if (isPrototype(value)) {
return !nativeKeys(value).length;
}
for (var key in value) {