Skip to content

Commit

Permalink
fix: response immutability
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed May 25, 2017
1 parent 23f76b8 commit 018c414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function applyOnPath(result, pathToArgs) {
if (Array.isArray(root))
return root.map(item => traverse(item, pathRoot));

const changedObject = Object.assign(root);
const changedObject = Object.assign({}, root);
for (const key in pathRoot) {
if (key === '@_')
continue;
Expand Down

0 comments on commit 018c414

Please sign in to comment.