Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
PotatoEngineer
on Feb 14, 2012
|
parent
|
context
|
favorite
| on:
JavaScript: Warts and workarounds
I've always found == to be very useful when comparing undefined, because undefined == null. It's very rare that I want to treat undefined and null separately (unless one or the other means there was an error earlier).
funksta
on Feb 14, 2012
[–]
That's the only reasonable use for ==, IMO.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: