removeEventHandlerListener = (eventHandler, f) => {
  const l = eventHandler.l;
  const len = l.length;
  eventHandler.l = l.filter(g => f !== g);

  if (len === eventHandler.l.length) {
    console.error('[yjs] Tried to remove event handler that doesn\'t exist.');
  }
}
Removes an event listener.

@template ARG0,ARG1
@param {EventHandler<ARG0,ARG1>} eventHandler
@param {function(ARG0,ARG1):void} f The event handler that was added with
                    {@link EventHandler#addEventListener}

@private
@function