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