Bump to v4.10.0.

This commit is contained in:
John-David Dalton
2016-04-10 23:01:56 -07:00
parent 7d39d58e43
commit be0bf2681b
61 changed files with 445 additions and 420 deletions

View File

@@ -1,4 +1,4 @@
var baseCastPath = require('./_baseCastPath'),
var castPath = require('./_castPath'),
has = require('./has'),
isKey = require('./_isKey'),
last = require('./last'),
@@ -13,7 +13,7 @@ var baseCastPath = require('./_baseCastPath'),
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
*/
function baseUnset(object, path) {
path = isKey(path, object) ? [path] : baseCastPath(path);
path = isKey(path, object) ? [path] : castPath(path);
object = parent(object, path);
var key = last(path);
return (object != null && has(object, key)) ? delete object[key] : true;