So, I have the following issue:
let str = "M1"
console.log(parseInt(str.charAt(0)) != NaN))
It says true for some reason. Same with 1M.
As long as I know, NaN is a number type.
Though, I need (parseInt(str.charAt(0)) != NaN) == false in this case. And true in case of 1M.
Thanks for every answer.
PS* parseInt(str) returns NaN