Skip to content

Commit

Permalink
Update lib/utils.js
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Derrow <sean.derrow@gmail.com>
  • Loading branch information
vkarpov15 and sderrow committed May 9, 2024
1 parent 2c0f63b commit 0df5b30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ exports.merge = function merge(to, from, options, path) {
if (to[key] == null) {
if (isPOJO(from[key])) {
to[key] = { ...from[key] };
} else if (Array.isArray(from[key])) {
to[key] = from[key].slice();
} else {
to[key] = from[key];
}
Expand Down

0 comments on commit 0df5b30

Please sign in to comment.