I can only think of
let a;
a = which may be letters, numbers, Chinese characters, symbols, etc.;
if (Number.isFinite (a-0) = true) {
/ / then this an is a finite number, but cannot judge an infinite number.
}
is there any other way that is more reasonable