It also helps a lot when one has a phobia of statements.
constpanic=err=>{throwerr// oh no, a statement!}constapply=(state,event,context)=>(this.reducers[event.type]||panic(newError(`Unknown event type: ${event.type}`)))(state,event,context)constapplyAll=(state,events,context)=>events.reduce((state,event)=>apply(state,event,context),state)constreplay=(events,context)=>applyAll(this.initialState,events,context)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It also helps a lot when one has a phobia of statements.