Skip to content

Commit

Permalink
reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 5, 2024
1 parent b7cbe5a commit 7a1bf04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/defu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function _defu<T>(
if (!isPlainObject(defaults)) {
return _defu(baseObject, {}, namespace, merger);
}

const object = Object.assign({}, defaults);

for (const key in baseObject) {
Expand Down

0 comments on commit 7a1bf04

Please sign in to comment.