diff --git a/src/utils/utils.js b/src/utils/utils.js index 4c9348634..4134f737f 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -92,7 +92,7 @@ function extend(...args) { for (let i = 1; i < args.length; i += 1) { const nextSource = args[i]; if (nextSource !== undefined && nextSource !== null) { - const keysArray = Object.keys(Object(nextSource)); + const keysArray = Object.keys(Object(nextSource)).filter((key) => key !== '__proto__'); for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) { const nextKey = keysArray[nextIndex]; const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);