Bump to v4.7.0.

This commit is contained in:
John-David Dalton
2016-03-26 00:00:36 -07:00
parent a83b4ebd53
commit ce0b51888c
394 changed files with 1789 additions and 841 deletions

View File

@@ -1,5 +1,5 @@
import baseGet from './_baseGet';
import baseSlice from './_baseSlice';
import get from './get';
/**
* Gets the parent value at `path` of `object`.
@@ -10,7 +10,7 @@ import get from './get';
* @returns {*} Returns the parent value.
*/
function parent(object, path) {
return path.length == 1 ? object : get(object, baseSlice(path, 0, -1));
return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
}
export default parent;