Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yihan12 authored Dec 15, 2023
1 parent fd2f493 commit 5fec677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/Equality Comparisons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ console.log('c,d' , Object.is(c ,d)) // {} true
```

- Object.is()处理不同类型相同值时,返回false,例如(0,'0',0n,new String("0"));
- Object.is()认为 +0等于-0
- Object.is()认为 +0不等于-0
- Object.is()认为 NaN等于NaN
- Object.is()认为{}不等于{}

Expand Down

0 comments on commit 5fec677

Please sign in to comment.