mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Ensure path a property name is teated as a key before a path in _.get and _.set.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user