Become a member
Sign in
Simple event dispatcher implementation using JavaScript
45
1
Muhammad Hamada
Eitan Avgil
Eitan Avgil
Sep 4, 2018 · 1 min read

Nice article, thank — it helped me :)
I altered it a bit since I am using TypeScript, which means that you can save some of the type-validations,
here’s how it looks:
https://gist.github.com/eitanavgil/1c7f6e442476948ea7230523c2919bfe

  • Dispatcher
  • Typescript
  • Events

Eitan Avgil

Written by

Eitan Avgil

Write the first response

Discover Medium

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Make Medium yours

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Become a member

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
AboutHelpLegal