/** * @license Use of this source code is governed by an MIT-style license that * can be found in the LICENSE file at https://github.com/cartant/rxjs-etc */ import { Observable, OperatorFunction } from "rxjs"; export function spread( ...operations: OperatorFunction[] ): OperatorFunction { return (source: Observable) => operations.reduce((acc, operator) => acc.pipe(operator), source); }