Skip to content

Commit

Permalink
chore: run yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinbaum committed Apr 5, 2024
1 parent 8fa0e2b commit 2af2196
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,16 @@ export const assign = <X extends Record<string | symbol | number, any>>(
const merged = { ...initial }

for (const key in override) {
if(override.hasOwnProperty(key)) {
if(isObject(initial[key])) {
if (override.hasOwnProperty(key)) {
if (isObject(initial[key])) {
merged[key] = assign(initial[key], override[key])
}
else {
} else {
merged[key] = override[key]
}
}
}

return merged;
return merged
}

/**
Expand Down

0 comments on commit 2af2196

Please sign in to comment.