Using the EventTarget interface
Implementing an isomorphic CustomEvent in Node.js v18 and the browser.
Tags: javascript, node, webdev, eventdriven