Skip to content

Instantly share code, notes, and snippets.

@rystsov
Created May 5, 2016
Embed
What would you like to do?
function FSM() {
this.state = null;
this.execute = function(action, msg) {
this.state = action(this.state, msg)
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment