this post was submitted on 11 Dec 2023
32 points (80.8% liked)
JavaScript
2663 readers
32 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Seems a bit shitty they mention the article by Eric Elliott (one of the first search results if you search "nested ternaries") but they don't take his advice.
This doesn't seem ugly to me at all (left out
animalso I didn't have to type as much):