initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
15
node_modules/rxjs/dist/esm5/internal/operators/pairwise.js
generated
vendored
Normal file
15
node_modules/rxjs/dist/esm5/internal/operators/pairwise.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
export function pairwise() {
|
||||
return operate(function (source, subscriber) {
|
||||
var prev;
|
||||
var hasPrev = false;
|
||||
source.subscribe(createOperatorSubscriber(subscriber, function (value) {
|
||||
var p = prev;
|
||||
prev = value;
|
||||
hasPrev && subscriber.next([p, value]);
|
||||
hasPrev = true;
|
||||
}));
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=pairwise.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue