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;