3 ms·
Which wtfs bite you the most? I can't remember being bitten lately, maybe I have a blind spot.
by arve0 9y ago
Which wtfs bite you the most?
I can't remember being bitten lately, maybe I have a blind spot.
- true_religion 9y agoIn a lot of the places where NaN is generated, I would prefer it if an error was thrown.
- bryanrasmussen 9y agoI think all JS NaNs are quiet NaNs when sometimes signaling NaNs should be supported/be preferable https://en.wikipedia.org/wiki/NaN#Signaling_NaN https://en.wikipedia.org/wiki/NaN#Signaling_NaN
- gear54rus 9y agoforEach returns undefined. Why would you not just return the same array for easy chaining?
- brad0 9y agoProbably 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.