UNPKG

callbag-concat-with

Version:

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

21 lines (14 loc) • 576 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var concat = _interopDefault(require('callbag-concat')); var of = _interopDefault(require('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)); }; } exports.default = concatWith;