Why isn't NaN finite?

后端 未结 5 629
萌比男神i
萌比男神i 2021-01-13 17:34

Testing the isFinite function I see that NaN is an infinite number (even if it\'s not a number :-)).

5条回答
  •  天涯浪人
    2021-01-13 17:41

    Because it is not a numeric value...and finite/infinite is applicable only to numbers.

提交回复
热议问题