Bump to v4.17.2.

This commit is contained in:
John-David Dalton
2016-11-15 22:25:47 -08:00
parent 5585b3ae22
commit db9697dfef
14 changed files with 176 additions and 176 deletions

View File

@@ -3,12 +3,6 @@ var castPath = require('./_castPath'),
parent = require('./_parent'),
toKey = require('./_toKey');
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.unset`.
*
@@ -20,8 +14,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
function baseUnset(object, path) {
path = castPath(path, object);
object = parent(object, path);
var key = toKey(last(path));
return !(object != null && hasOwnProperty.call(object, key)) || delete object[key];
return object == null || delete object[toKey(last(path))];
}
module.exports = baseUnset;