Skip to content
Permalink
Browse files Browse the repository at this point in the history
exclude __proto__
  • Loading branch information
doowb committed Feb 7, 2018
1 parent f6cba02 commit 19953a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -37,7 +37,7 @@ function extend(target, obj) {
assignSymbols(target, obj);

for (var key in obj) {
if (hasOwn(obj, key)) {
if (key !== '__proto__' && hasOwn(obj, key)) {
var val = obj[key];
if (isObject(val)) {
if (typeOf(target[key]) === 'undefined' && typeOf(val) === 'function') {
Expand Down

0 comments on commit 19953a8

Please sign in to comment.