Javascript Starter

Drupal
content_copy
((Drupal, once) => {
  Drupal.behaviors.myBehavior = {
    attach(context) {
      let target = once('myBehavior', '#body');
      target.forEach(t) {
        alert(target.textContent);
      }
    },
  };
})(Drupal, once);