source: trip-planner-front/node_modules/rxjs/_esm5/internal/operators/mapTo.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1009 bytes
Line 
1/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
2import * as tslib_1 from "tslib";
3import { Subscriber } from '../Subscriber';
4export function mapTo(value) {
5 return function (source) { return source.lift(new MapToOperator(value)); };
6}
7var MapToOperator = /*@__PURE__*/ (function () {
8 function MapToOperator(value) {
9 this.value = value;
10 }
11 MapToOperator.prototype.call = function (subscriber, source) {
12 return source.subscribe(new MapToSubscriber(subscriber, this.value));
13 };
14 return MapToOperator;
15}());
16var MapToSubscriber = /*@__PURE__*/ (function (_super) {
17 tslib_1.__extends(MapToSubscriber, _super);
18 function MapToSubscriber(destination, value) {
19 var _this = _super.call(this, destination) || this;
20 _this.value = value;
21 return _this;
22 }
23 MapToSubscriber.prototype._next = function (x) {
24 this.destination.next(this.value);
25 };
26 return MapToSubscriber;
27}(Subscriber));
28//# sourceMappingURL=mapTo.js.map
Note: See TracBrowser for help on using the repository browser.