2 ms·
NaN always returns false on comparisons. So seems pretty straight forward that this would return NaN if NaN is passed in. That doesn't seem unreasonable. (In
by cogman10 6y ago
NaN always returns false on comparisons. So seems pretty straight forward that this would return NaN if NaN is passed in.
That doesn't seem unreasonable. (In fact, that's what happens with the min/max approach).