2 ms·
this is type coercion at work. If you have that kind of problem then maybe you should sanitize whatever the input is first, then check with parseFloat and isNa
by throw_m239339 5y ago
this is type coercion at work.
If you have that kind of problem then maybe you should sanitize whatever the input is first, then check with parseFloat and isNaN if the value IS a number.
If you are sending arrays to your modulo check then obliviously your code has a logical error.