Bump to v4.17.20.

This commit is contained in:
Benjamin Tan
2020-12-20 14:19:47 +08:00
parent 4d5fdc492f
commit 42e2585e5f
16 changed files with 78 additions and 25 deletions

View File

@@ -29,6 +29,10 @@ function baseSet(object, path, value, customizer) {
var key = toKey(path[index]),
newValue = value;
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
return object;
}
if (index != lastIndex) {
var objValue = nested[key];
newValue = customizer ? customizer(objValue, key, nested) : undefined;