JavaScript NaN equvialence -
this question has answer here:
just fun trying compare value set nan value set nan.
why 2 variables, identical values, not equivalent?
var = number.nan var b = number.nan === b false == b false var = nan var b = nan === b false == b false
why happen?
nan not number, there no evaluated numberic value compare - use isnan() compare nan values. w3 schools link