TIL: In JavaScript, isNaN("") returns false, but parseInt("") returns NaN. o_o

comments (single view)

isNaN(parseInt("")) == true

In that case you can use Number.isNaN since you’ll be passing in a number anyway

View all comments