No, I didn't think you were wrong. I had the impression you were searching for a more concise solution 🤣
It was to show others how they can clean up their code to make it smaller and easier to read. You're definitely does that. lol. Thanks for providing feedback.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.