I have recently come across the version 4 of RxJS, and noticed that the method hasObservers on Subjects seems to have been removed. I am now faced with the challenge of migrating, as this removal is not documented on the migration guide.
hasObservers: function () { checkDisposed(this); return this.observers.length > 0; }
Is there an alternative solution to determine if a subject has a subscriber before calling next?