Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jan 22, 2025
1 parent 86f7b2f commit 5178f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vike-vue/src/utils/objectReplace.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function objectReplace(obj: object, objAddendum: object) {
export function objectReplace(obj: object, objNew: object) {
Object.keys(obj).forEach((key) => delete obj[key as keyof typeof obj])
Object.assign(obj, objAddendum)
Object.assign(obj, objNew)
}

0 comments on commit 5178f2b

Please sign in to comment.