Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
29
node_modules/rxjs/_esm2015/internal/operators/pairwise.js
generated
vendored
Normal file
29
node_modules/rxjs/_esm2015/internal/operators/pairwise.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { Subscriber } from '../Subscriber';
|
||||
export function pairwise() {
|
||||
return (source) => source.lift(new PairwiseOperator());
|
||||
}
|
||||
class PairwiseOperator {
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new PairwiseSubscriber(subscriber));
|
||||
}
|
||||
}
|
||||
class PairwiseSubscriber extends Subscriber {
|
||||
constructor(destination) {
|
||||
super(destination);
|
||||
this.hasPrev = false;
|
||||
}
|
||||
_next(value) {
|
||||
let pair;
|
||||
if (this.hasPrev) {
|
||||
pair = [this.prev, value];
|
||||
}
|
||||
else {
|
||||
this.hasPrev = true;
|
||||
}
|
||||
this.prev = value;
|
||||
if (pair) {
|
||||
this.destination.next(pair);
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=pairwise.js.map
|
Loading…
Add table
Add a link
Reference in a new issue