!49 Use the opposite operator ("!==") instead.

Merge pull request !49 from 李志腾/master
This commit is contained in:
openInula-robot 2023-10-20 08:14:00 +00:00 committed by Gitee
commit 1e9c7557b4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
* IE浏览器没有Object.is
*/
export function isSame(x: any, y: any) {
if (!(typeof Object.is === 'function')) {
if (typeof Object.is !== 'function') {
if (x === y) {
// +0 != -0
return x !== 0 || 1 / x === 1 / y;