Is there a way to get a list of events an object dispatches in Javascript or Typescript?
For example, if I want to see all the events that the window
object dispatches is there a way to do that?
The reason is I want to verify that when I add an event listener the object has the event that I want to listen for.