Fix failing strict mode _.set tests.

This commit is contained in:
jdalton
2015-04-14 22:46:08 -07:00
parent 8581be4977
commit f05a5a3abb

View File

@@ -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,