Created
February 7, 2021 13:56
-
-
Save P233/d5000e92ef773820ee39d17eeec18f42 to your computer and use it in GitHub Desktop.
Get SVG attributes which contains capital letter
This file contains 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
Array.from(document.querySelector(".index").querySelectorAll("code > a")).reduce((a, c) => { if (c.innerHTML !== c.innerHTML.toLowerCase()) return `${a}\n ":${c.innerHTML.toLowerCase()}" ":${c.innerHTML}"`; else return a;}, "(def attribute-replacements [") + "])"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment