Ensure path a property name is teated as a key before a path in _.get and _.set.

This commit is contained in:
jdalton
2015-04-03 12:36:31 -05:00
parent adc687f0a0
commit 219d4688e4
2 changed files with 17 additions and 0 deletions

View File

@@ -9951,6 +9951,10 @@
if (object == null) {
return object;
}
if (isKey(path) || (path in toObject(object))) {
object[path] = value;
return object;
}
path = toPath(path);
var index = -1,