Aug 9, 2017 · 1 min read
Thanks! You make a good point about the readability of those ternaries, but I think a better solution would be to pull the reducer function out so it’s more clear where it starts and ends.
The other alternatives don’t look much better to me. ☺
