Bump to v4.14.2.

This commit is contained in:
John-David Dalton
2016-08-07 21:23:34 -07:00
parent 6d4f76888f
commit cbf5cb1162
74 changed files with 233 additions and 256 deletions

View File

@@ -1,10 +1,15 @@
import baseHas from './_baseHas.js';
import castPath from './_castPath.js';
import isKey from './_isKey.js';
import last from './last.js';
import parent from './_parent.js';
import toKey from './_toKey.js';
/** 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`.
*
@@ -18,7 +23,7 @@ function baseUnset(object, path) {
object = parent(object, path);
var key = toKey(last(path));
return !(object != null && baseHas(object, key)) || delete object[key];
return !(object != null && hasOwnProperty.call(object, key)) || delete object[key];
}
export default baseUnset;