3 ms·
> Semantically, I would say NaN == NaN should return undefined (assuming JS here). I thought that the philosophy of JS was to make meaning out of every executi
by Dewie 12y ago
> Semantically, I would say NaN == NaN should return undefined (assuming JS here).
I thought that the philosophy of JS was to make meaning out of every execution and value, even the meaningless ones? Kind of the opposite of the fail-fast-and-hard philosophy.
String index of NaN? JS will find a way.