Emitter
Methods
addListener()
addListener(
eventName
,listener
):this
Parameters
• eventName: string
| symbol
• listener: AnyFunction
Returns
this
Source
emit()
emit(
eventName
, …payload
):boolean
Parameters
• eventName: string
| symbol
• …payload: any
[]
Returns
boolean
Source
removeListener()
removeListener(
eventName
,listener
):this
Parameters
• eventName: string
| symbol
• listener: AnyFunction
Returns
this