17 lines
637 B
JavaScript

/** PURE_IMPORTS_START _util_isScheduler,_of,_from,_operators_concatAll PURE_IMPORTS_END */
import { isScheduler } from '../util/isScheduler';
import { of } from './of';
import { from } from './from';
import { concatAll } from '../operators/concatAll';
export function concat() {
var observables = [];
for (var _i = 0; _i < arguments.length; _i++) {
observables[_i] = arguments[_i];
}
if (observables.length === 1 || (observables.length === 2 && isScheduler(observables[1]))) {
return from(observables[0]);
}
return concatAll()(of.apply(void 0, observables));
}
//# sourceMappingURL=concat.js.map