Implementing a simple state machine library in JavaScript

Let's write a state machine abstraction together to understand it better

dev

Sources