Last active
December 21, 2019 12:50
-
-
Save an-parubets/1f89c6df905d301bbdecf63ba82b2d9d to your computer and use it in GitHub Desktop.
EventEmitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventEmitter { | |
constructor() { | |
this.events = {}; | |
} | |
subscribe() {} | |
unsubscribe() {} | |
emit() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment