how to refer to data in state transition functions

Author: caybloodCreated May 19, 2020Updated Apr 16, 2021

I would like to be able to prevent certain transitions by adding logic to check the data attribute in `onBeforeTransition`. It's not immediately clear how best to update the code to support this. Thanks in advance for any help you can provide.

Source: jakesgordon/javascript-state-machine