mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix failing strict mode _.set tests.
This commit is contained in:
@@ -10056,11 +10056,7 @@
|
||||
return object;
|
||||
}
|
||||
var pathKey = (path + '');
|
||||
if (pathKey in toObject(object)) {
|
||||
object[pathKey] = value;
|
||||
return object;
|
||||
}
|
||||
path = isKey(path, object) ? [path] : toPath(path);
|
||||
path = (object[pathKey] != null || isKey(path, object)) ? [pathKey] : toPath(path);
|
||||
|
||||
var index = -1,
|
||||
length = path.length,
|
||||
|
||||
Reference in New Issue
Block a user