Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> A less error-prone solution would be only convert one string value to number when the another is really a number.

That is, in fact, exactly how JS handles it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: