Front end of the Slack clone application.

publishBehavior.js 361B

123456789101112
  1. import { BehaviorSubject } from '../BehaviorSubject';
  2. import { multicast } from './multicast';
  3. /**
  4. * @param value
  5. * @return {ConnectableObservable<T>}
  6. * @method publishBehavior
  7. * @owner Observable
  8. */
  9. export function publishBehavior(value) {
  10. return (source) => multicast(new BehaviorSubject(value))(source);
  11. }
  12. //# sourceMappingURL=publishBehavior.js.map