publish.js 297 B

1234567
  1. import { Subject } from '../Subject';
  2. import { multicast } from './multicast';
  3. import { connect } from './connect';
  4. export function publish(selector) {
  5. return selector ? (source) => connect(selector)(source) : (source) => multicast(new Subject())(source);
  6. }
  7. //# sourceMappingURL=publish.js.map