From 012c3107be834fce5c187655e8335387bfe1ba49 Mon Sep 17 00:00:00 2001 From: ZHITENGLI Date: Fri, 20 Oct 2023 15:59:01 +0800 Subject: [PATCH] Use the opposite operator ("!==") instead. --- packages/inula/src/renderer/utils/compare.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/inula/src/renderer/utils/compare.ts b/packages/inula/src/renderer/utils/compare.ts index 95e0f3a5..de5d58ca 100644 --- a/packages/inula/src/renderer/utils/compare.ts +++ b/packages/inula/src/renderer/utils/compare.ts @@ -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;