UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

9 lines • 402 B
import { BehaviorSubject } from '../BehaviorSubject'; import { ConnectableObservable } from '../observable/ConnectableObservable'; export function publishBehavior(initialValue) { return function (source) { var subject = new BehaviorSubject(initialValue); return new ConnectableObservable(source, function () { return subject; }); }; } //# sourceMappingURL=publishBehavior.js.map