What is the equivalent of Java double colon operator in typescript(if there's any):
stream.forEach( System.out::println(s));
EDIT: I know it's doable with certain functions like:
stream.forEach(console.log);
stream.filter(Boolean);
But when I use other functions e.g. BehaviorSubject "next" my code breaks. I don't know what qualifies those other two to be called by reference. I'd like to have something like:
stream.pipe(someSubject.next);
Instead of:
stream.pipe(value => someSubject.next(value));