Y
Hacker News
new
|
ask
|
show
|
jobs
by
Izkata
101 days ago
Unary "+" returns NaN for strings that don't contain exactly a number (except for empty string which standard type conversion turns into 0). It even works for scientific notation like +'1e3' === 1000.