function removeEventListenerImpl(arg1, arg2, arg3) {
    ready(function() {
      const eventArgs = processEventArgs(arg1, arg2, arg3)
      eventArgs.target.removeEventListener(eventArgs.event, eventArgs.listener)
    })
    return isFunction(arg2) ? arg2 : arg3
  }
Removes an event listener from an element

@see https://htmx.org/api/#off

@param {EventTarget|string} arg1 the element to remove the listener from | the event name to remove the listener from
@param {string|EventListener} arg2 the event name to remove the listener from | the listener to remove
@param {EventListener} [arg3] the listener to remove
@returns {EventListener}