From 2af219647e13477a41c0af226acecd74d218b6c8 Mon Sep 17 00:00:00 2001 From: Kinbaum Date: Fri, 5 Apr 2024 11:10:56 -0400 Subject: [PATCH] chore: run yarn format --- src/object.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/object.ts b/src/object.ts index 2265cc08..445e301e 100644 --- a/src/object.ts +++ b/src/object.ts @@ -278,17 +278,16 @@ export const assign = >( 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 } /**