Make isNumber
return true for NaN
#74
aleclarson
announced in
RFCs
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When a NaN value is regrettably propagated through a program, it's best to run it through code that expects to be working with numbers (which happens to be code guarded by
isNumber
). That way, the NaN value has a better chance of not crashing the program, and it's more likely to be coerced into a non-NaN value.Related issues
sodiray/radash#405
Beta Was this translation helpful? Give feedback.
All reactions