MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/11nkhb0/javascript_is_hard_sometimes/jbpd0pj/?context=3
r/shittyprogramming • u/gabboman • Mar 10 '23
64 comments sorted by
View all comments
Show parent comment
2
Yeah and if you don't provide a default value for reduce it would crash on empty strings, which is a common edge case people forget about.
They clearly know what they are doing.
View all comments
Show parent comment
2
u/EsperSpirit Mar 10 '23
Yeah and if you don't provide a default value for reduce it would crash on empty strings, which is a common edge case people forget about.
They clearly know what they are doing.