I\'m generating content dynamically, so I\'m often ending up with documentFragments which I\'m querying using querySelectorAll or querySelector>
documentFragments
querySelectorAll
querySelector>
Use ES6 Set():
var elems = new Set([ ...document.querySelectorAll(query1), ...document.querySelectorAll(query2) ]);