Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
actionObjs.map(action =>
this.emit('action', {
state: this.state,
extstate: this.extstate,
event,
action: actions.toActionObject(action),
}),
);
const actionObjs = this.state.actions.map(action =>
actions.toActionObject(action),
);