random thought: To see if something equals NaN,can't you just check for the stringified form of the number equaling "NaN"?
after all, the usual WTF lists for JS usually have a stringified NaN somewhere as part of the fun.
after all, the usual WTF lists for JS usually have a stringified NaN somewhere as part of the fun.
fun isNan(n) = n != n