Skip to content

Commit

Permalink
bug fix on boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoreintuition committed Oct 23, 2022
1 parent cccdd9d commit f443c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const deepMerge = (
export const objectsEqualShallow = (
o1: Record<string, number | RegExp> | null | undefined,
o2: Record<string, number | RegExp> | null | undefined
): boolean {
): boolean => {
if (o1 == undefined || o2 == undefined) {
// Null is only equal to null, and undefined to undefined.
return o1 === o2;
Expand Down

0 comments on commit f443c91

Please sign in to comment.