diff --git a/src/index.js b/src/index.js index ff07626..20a7eb9 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ function assign(target, source) { for (let i in source) { if (Array.isArray(target[i])) { concat(target[i], source[i]); - } else if (typeof(target[i]) == "object") { + } else if (typeof(target[i]) == "object" && (target[i] == '__proto__' || target[i] == 'prototype' || target[i] == 'constructor')) { assign(target[i], source[i]); } else { target[i] = source[i];