DEV Community

Discussion on: ✔||🤢 Commit or Vomit | checks.some()

Collapse
 
malikkillian profile image
MalikKillian

I'd prefer a ternary over the if-else, but changing the tests to a list of functions is excellent. Adding, updating, removing tests becomes dead simple at this point and it's easier to test.