unsubscribe
Unsubscribes an `observer` from a provided array of event types.
Parameters
observer
An `observer` that will be unsubscribed from a given events.
events
An array of event types to be unsubscribed from.
Unsubscribes an `observer` from all events.
Parameters
observer
An `observer` that will be unsubscribed from all previously subscribed events.