Skip to content

Commit

Permalink
fix(isDeepEqual): NaN equals (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyang0826 committed Jan 5, 2023
1 parent 91a2253 commit 2664d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/equal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export function isDeepEqual(value1: any, value2: any): boolean {
return isDeepEqual(value1[key], value2[key])
})
}
return value1 === value2
return Object.is(value1, value2)
}

0 comments on commit 2664d9b

Please sign in to comment.