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