Understanding State of JS in Drupal

I have a simple contributed module that I have written. It has pretty basic javascript. I decided to clean it up and write it in vanilla js, removing jQuery since that seems to be the direction we’re going. Here is the resulting code… const viewSourceLinks = document.querySelectorAll( ‘.simple-styleguide–view-sourecode’ ); [].forEach.call(viewSourceLinks, el => { el.addEventListener(‘click’, ()…