A property that gives a list of the state names would be useful, for example, when building a debugger where you want to trigger each state without having to hardcode them in your interface.
e.g.,
myState.states
(This would basically involve exposing the inner state object‘s keys; Object.keys(this.state))
A property that gives a list of the state names would be useful, for example, when building a debugger where you want to trigger each state without having to hardcode them in your interface.
e.g.,
```js
myState.states
```
(This would basically involve exposing the inner state object‘s keys; `Object.keys(this.state)`)