Is there a way to determine whether or not a css class exists using JavaScript?
Oneliner:
[].slice.call(document.styleSheets) .reduce( (prev, styleSheet) => [].slice.call(styleSheet.cssRules)) .reduce( (prev, cssRule) => prev + cssRule.cssText) .includes(".someClass")