UNPKG

callbag-concat-with

Version:

👜 Callbag operator that emits items given it as arguments after it finishes emitting items emitted by source.

15 lines (11 loc) • 338 B
import concat from 'callbag-concat'; import of from 'callbag-of'; function concatWith() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return function (source) { return concat(source, of.apply(void 0, args)); }; } export default concatWith;