diff --git a/index.js b/index.js index 5fecaa0..fa89a3a 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ function extend(target, source) { for (var key in source) { value = source[key]; - + if(key !== '__proto__') { if (Array.isArray(value)) { if (!Array.isArray(target[key])) { target[key] = []; @@ -46,6 +46,7 @@ function extend(target, source) { target[key] = value; } } + } return target; }