Every new change
This commit is contained in:
31
node_modules/rxjs/_esm5/internal/operators/skip.js
generated
vendored
Normal file
31
node_modules/rxjs/_esm5/internal/operators/skip.js
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { Subscriber } from '../Subscriber';
|
||||
export function skip(count) {
|
||||
return function (source) { return source.lift(new SkipOperator(count)); };
|
||||
}
|
||||
var SkipOperator = /*@__PURE__*/ (function () {
|
||||
function SkipOperator(total) {
|
||||
this.total = total;
|
||||
}
|
||||
SkipOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new SkipSubscriber(subscriber, this.total));
|
||||
};
|
||||
return SkipOperator;
|
||||
}());
|
||||
var SkipSubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(SkipSubscriber, _super);
|
||||
function SkipSubscriber(destination, total) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.total = total;
|
||||
_this.count = 0;
|
||||
return _this;
|
||||
}
|
||||
SkipSubscriber.prototype._next = function (x) {
|
||||
if (++this.count > this.total) {
|
||||
this.destination.next(x);
|
||||
}
|
||||
};
|
||||
return SkipSubscriber;
|
||||
}(Subscriber));
|
||||
//# sourceMappingURL=skip.js.map
|
Reference in New Issue
Block a user