Comment Comment by benaston I did exactly the same thing several weeks ago, for my own state machine implementation.https://www.npmjs.com/package/mistic parent benaston 11 years ago
https://www.npmjs.com/package/mistic