title: How to filter HTML Collection in JavaScript?
body: <p>Hi I have problem with filtering HTML collection. I obtained list of classes as html collection. One of those class have .active class. I need to remove all other classes from this list and left only next one AFTER active class. Please how to do that?</p>
  <p>Example of my list:</p>
  <pre><code>HTMLCollection []
  0: div.chapter-list-item.seen
  1: div.chapter-list-item.seen
  2: div.chapter-list-item.seen
  3: div.chapter-list-item.seen
  4: div.chapter-list-item.active.seen
  5: div.chapter-list-item.seen
  6: div.chapter-list-item.seen
  7: div.chapter-list-item.seen
  8: div.chapter-list-item.
  </code></pre>
  <p>My code:</p>
  <pre><code>let allChaptersItems= document.getElementsByClassName(&quot;chapter-list-item&quot;);
  let activeChapter = document.getElementsByClassName(&quot;active&quot;);
  console.log(activeChapter);
  console.log(allChaptersItems);
  </code></pre>