Skip to content

Commit

Permalink
exclude __proto__
Browse files Browse the repository at this point in the history
  • Loading branch information
doowb committed Feb 7, 2018
1 parent 7705bdf commit 578b0bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ function mixinDeep(target, objects) {
*/

function copy(val, key) {
if (key === '__proto__') {
return;
}

var obj = this[key];
if (isObject(val) && isObject(obj)) {
mixinDeep(obj, val);
Expand Down

0 comments on commit 578b0bc

Please sign in to comment.