You're right. It might not be suitable for this problem.
I didn't take all the cases into consideration.. :D
No worries! Always great to hear some other options that might be useful 😊
Also I didn’t know about what $attrs exactly does, so thanks for sharing!
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.