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

That is really for convenience, you can still be explicit:

  if(foo === 1 || foo === "1" || foo === true) { ...


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

Search: