Created
July 9, 2018 10:48
-
-
Save Adam-Mould/144257bba5449896840a9bcb93efb813 to your computer and use it in GitHub Desktop.
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.querySelectorAll('[id]')) | |
.map(domNode => domNode.id) | |
.filter((id, index, self) => id.length > 0 && self.indexOf(id) !== index) | |
.forEach(id => console.warn(`Multiple IDs #${id}`)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment