title: Programmatically Call All Functions In Object? (Javascript)
body: <p>As the title states, is there a way to programmatically call all the functions in an object? They don't have to be called in a certain order and none of them depend on each other for any state etc. What I had originally tried which seemed the most logical (at least to me) was </p>
  
  <pre><code>var object = {
      eventOne(){
          console.log("eventOne")
      },
      eventTwo(){
        console.log("eventTwo")
      },
      .......more events
  }
  //and then this for calling them
  for(event in object){
    event();
  }
  </code></pre>
  
  <p>but that just ends up in a event() is not a function error. As of now there aren't enough events in the object for me to be too bothered and not just call them manually but there will soon be about 20 or so and they need to be registered in multiple locations, and I'm also curious to know if it's even possible :)</p>