Y
Hacker News
new
|
ask
|
show
|
jobs
by
tuyiown
232 days ago
NaN comes from parsing results or Infinity occurring in operations. I personally ends up more to use Number.isFinite(), which will be false on both occurrences when I need a real (haha) numeric answer.