Unfortunately, I usually don't keep the whole codebase in my head (including libraries), so I often don't know the reason.
The more general point is that I don't want to have to know, because the mechanism of how it is hidden is not what I care about.
> It's not quite as succint as your jquery, but you also could have written this.
Yes, it's more than three times as long as the jQuery variant.
Unfortunately, I usually don't keep the whole codebase in my head (including libraries), so I often don't know the reason.
The more general point is that I don't want to have to know, because the mechanism of how it is hidden is not what I care about.
> It's not quite as succint as your jquery, but you also could have written this.
Yes, it's more than three times as long as the jQuery variant.