mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Use assignValue in baseClone to avoid strict mode errors.
This commit is contained in:
@@ -2333,7 +2333,7 @@
|
|||||||
|
|
||||||
// Recursively populate clone (susceptible to call stack limits).
|
// Recursively populate clone (susceptible to call stack limits).
|
||||||
(isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
|
(isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
|
||||||
result[key] = baseClone(subValue, isDeep, customizer, key, value, stack);
|
assignValue(result, key, baseClone(subValue, isDeep, customizer, key, value, stack));
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user