Skip to content

Commit 6cecf2b

Browse files
committed
refactor: self review
1 parent 370858d commit 6cecf2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function pick<T extends {}>(object: T, keys: (keyof T)[]): Partial<T> {
1010
}
1111

1212
function isObject(value: unknown): value is Record<string, unknown> {
13-
return typeof value === 'object' && value !== null && !Array.isArray(value);
13+
return value !== null && typeof value === 'object' && !Array.isArray(value);
1414
}
1515

1616
export function removeUndefinedKeys(prop: unknown) {

0 commit comments

Comments
 (0)