_hyperscript icon indicating copy to clipboard operation
_hyperscript copied to clipboard

Should NaN be evaulated as empty?

Open delzac opened this issue 2 years ago • 1 comments

<input type="text" _="on load get 'test' as a Number if it is empty set my value to 'NaN is empty' else set my value to 'NaN is not empty' end">

In the above test code, i try to convert a string into a number. This returns a NaN, but it doesn't evaluate as empty. I'm wondering if this behaviour is bug?

delzac avatar Nov 01 '23 08:11 delzac

I have the same question.

abishekmuthian avatar Aug 02 '25 16:08 abishekmuthian