Bump to v4.11.2.

This commit is contained in:
John-David Dalton
2016-04-19 22:21:01 -07:00
parent 692aabae13
commit 35805ec250
87 changed files with 342 additions and 163 deletions

View File

@@ -1,6 +1,7 @@
import castPath from './_castPath';
import isFunction from './isFunction';
import isKey from './_isKey';
import toKey from './_toKey';
/**
* This method is like `_.get` except that if the resolved value is a
@@ -43,7 +44,7 @@ function result(object, path, defaultValue) {
length = 1;
}
while (++index < length) {
var value = object == null ? undefined : object[path[index]];
var value = object == null ? undefined : object[toKey(path[index])];
if (value === undefined) {
index = length;
value = defaultValue;