title: How to turn an array of HTML elements into a NodeList?
body: <p>We're trying to replace <code>document.querySelectorAll()</code> with our own function,  and we don't want to have to check all the current uses and maybe have to refactor those. We're trying to return a NodeList, but that seems to be impossible because there's no apparent way to create one.</p>
  <p>So we're trying to return an array of HTML elements making it look like it's a NodeList. It was relatively easy to replicate NodeList's interface, but the problem is: <strong>how to overload the brackets ([]) operator?</strong> <a href="https://stackoverflow.com/questions/1711357/how-would-you-overload-the-operator-in-javascript">Apparently</a> it's impossible to do in JavaScript.</p>