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 7be7e50 commit 2c33634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -30,7 +30,7 @@ module.exports = function mergeDeep(orig, objects) {

function merge(target, obj) {
for (var key in obj) {
if (!hasOwn(obj, key)) {
if (key === '__proto__' || !hasOwn(obj, key)) {
continue;
}

Expand Down

0 comments on commit 2c33634

Please sign in to comment.