Skip to content

Commit

Permalink
replaced Number.isNaN() with globalThis.isNaN()
Browse files Browse the repository at this point in the history
  • Loading branch information
honzi committed Jun 6, 2024
1 parent d582d41 commit 0c92373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function calculate_all(){

function power(value, id){
let power = +document.getElementById(id).value;
if(Number.isNaN(power)){
if(globalThis.isNaN(power)){
power = 0;
}
return Math.pow(
Expand Down

0 comments on commit 0c92373

Please sign in to comment.