Add new lint to disallow use of confusing isNaN (#4999)
This commit is contained in:
@ -345,7 +345,7 @@ export function onDragNumberCalculation(text: string, e: MouseEvent) {
|
||||
)
|
||||
const newVal = roundOff(addition, precision)
|
||||
|
||||
if (isNaN(newVal)) {
|
||||
if (Number.isNaN(newVal)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user