I'll just test that it's ! isNaN()
or isn't not a number
when read literally, that will save me, I thought.
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
In JavaScript, false and 0 are not strict equally. Since it’s not a strong typed language, isNaN will considere 0 and return as false. Nowadays you can use isNumber to strictly check that. It’s safer.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Yes. What really made me want to throw a fit was when an empty string passed. I used isNumber()
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
LOL, no I didn't ...
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit