publish.js 333 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 ? function (source) { return connect(selector)(source); } : function (source) { return multicast(new Subject())(source); };
  6. }
  7. //# sourceMappingURL=publish.js.map