In addition to <toggleName>Active and toggle<toggleName>() I think we should have a
set<toggleName>() that takes a boolean to set the toggle. Otherwise you end up with stuff like this:
function showModal (doShow) {
if ((doShow && !shownActive) || (!doShow && shownActive)) toggleShown()
}
In addition to
<toggleName>Active
andtoggle<toggleName>()
I think we should have aset<toggleName>()
that takes a boolean to set the toggle. Otherwise you end up with stuff like this: