Created
July 27, 2019 19:03
-
-
Save sandipchitale/1c8d955c780d5735d5473aba021f9d62 to your computer and use it in GitHub Desktop.
One liner to return all classes used by the page. #javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[].concat(...[...document.querySelectorAll('*')].map(e=>[...e.classList])).filter((d,i,a)=>a.indexOf(d)==i).sort() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment