aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/operators/skipWhile.js')
-rw-r--r--node_modules/rxjs/dist/esm/internal/operators/skipWhile.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js b/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js
new file mode 100644
index 0000000..4ce61e2
--- /dev/null
+++ b/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js
@@ -0,0 +1,10 @@
+import { operate } from '../util/lift';
+import { createOperatorSubscriber } from './OperatorSubscriber';
+export function skipWhile(predicate) {
+ return operate((source, subscriber) => {
+ let taking = false;
+ let index = 0;
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => (taking || (taking = !predicate(value, index++))) && subscriber.next(value)));
+ });
+}
+//# sourceMappingURL=skipWhile.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage