Hacker News new | past | comments | ask | show | jobs | submit login

Silently? Since when is comparing objects in JS with (in)equality operators the right thing to do? There's no operator overloading nor special symbol you can implement in objects to make this work seamlessly ever. Casting/stringifying or calling functions is the only way for all objects.



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

Search: