Skip to content

Commit

Permalink
Update equal-txt.ts
Browse files Browse the repository at this point in the history
Handle event where txt a or b can be undefined
#47
  • Loading branch information
mdidon committed Jan 8, 2024
1 parent e9e4e25 commit 67ed22f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/equal-txt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default function equalTxt(a: Record<string, string>, b: Record<string, string>): boolean {
if(a === undefined || b === undefined) return false
let aKeys = Object.keys(a)
let bKeys = Object.keys(b)
if(aKeys.length != bKeys.length) return false
Expand Down

0 comments on commit 67ed22f

Please sign in to comment.