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

Which wtfs bite you the most?

I can't remember being bitten lately, maybe I have a blind spot.



In a lot of the places where NaN is generated, I would prefer it if an error was thrown.


I think all JS NaNs are quiet NaNs when sometimes signaling NaNs should be supported/be preferable https://en.wikipedia.org/wiki/NaN#Signaling_NaN


forEach returns undefined. Why would you not just return the same array for easy chaining?


Probably to make a distinction between map() which returns a new array. If forEach returned the same array I believe you'd would see a lot more bugs.




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

Search: