This is the answer. Write a utility instead of get frustrated with the language; be pragmatic. Same with looking for libraries that do something trivial.
That said, I hate this, all the ways it's opinionated and praised zealously for it as the best thing since sliced bread.