Bump to v4.17.2.

This commit is contained in:
John-David Dalton
2016-11-15 22:20:52 -08:00
parent 76b7758fc7
commit 0c27706e89
9 changed files with 26 additions and 54 deletions

View File

@@ -1,11 +1,5 @@
define(['./_castPath', './last', './_parent', './_toKey'], function(castPath, last, parent, 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`.
*
@@ -17,8 +11,7 @@ define(['./_castPath', './last', './_parent', './_toKey'], function(castPath, la
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))];
}
return baseUnset;