module = NaN will cause your script to be tricked, because NaN !== NaN.
Not sure how to fix it, because isNaN can be overridden.
Not sure how to fix it, because isNaN can be overridden.
// NaN typeof is ... number
typeof value === 'number' && value != value
btw, the original isNaN() doesn't check if a value is NaN, it checks if a value is coercible to a number > isNaN("hello world")
true