Bump to v4.11.2.

This commit is contained in:
John-David Dalton
2016-04-19 22:00:04 -07:00
parent e93cb815c3
commit ddde027fd9
89 changed files with 1020 additions and 726 deletions

View File

@@ -1,6 +1,7 @@
var baseProperty = require('./_baseProperty'),
basePropertyDeep = require('./_basePropertyDeep'),
isKey = require('./_isKey');
isKey = require('./_isKey'),
toKey = require('./_toKey');
/**
* Creates a function that returns the value at `path` of a given object.
@@ -25,7 +26,7 @@ var baseProperty = require('./_baseProperty'),
* // => [1, 2]
*/
function property(path) {
return isKey(path) ? baseProperty(path) : basePropertyDeep(path);
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}
module.exports = property;