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 baseProperty from './_baseProperty';
import basePropertyDeep from './_basePropertyDeep';
import isKey from './_isKey';
import toKey from './_toKey';
/**
* Creates a function that returns the value at `path` of a given object.
@@ -25,7 +26,7 @@ import isKey from './_isKey';
* // => [1, 2]
*/
function property(path) {
return isKey(path) ? baseProperty(path) : basePropertyDeep(path);
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}
export default property;