Why does it matter how complicated it is if you’re not the one maintaining it? Your head would probably spin if you saw how complicated the database code you use is, as a backend dev.
I suppose I don’t really care, it’s not my library and I’ll never use it, it’s just interesting to see how differently styled it is.
I agree it's complex, but necessary for a utility like this if you want correctness for arbitrary N args