From e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 28 Jun 2025 17:26:46 -0700 Subject: initial commit: scaffolding --- .../rxjs/dist/esm5/internal/operators/take.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 node_modules/rxjs/dist/esm5/internal/operators/take.js (limited to 'node_modules/rxjs/dist/esm5/internal/operators/take.js') diff --git a/node_modules/rxjs/dist/esm5/internal/operators/take.js b/node_modules/rxjs/dist/esm5/internal/operators/take.js new file mode 100644 index 0000000..e2c24c0 --- /dev/null +++ b/node_modules/rxjs/dist/esm5/internal/operators/take.js @@ -0,0 +1,20 @@ +import { EMPTY } from '../observable/empty'; +import { operate } from '../util/lift'; +import { createOperatorSubscriber } from './OperatorSubscriber'; +export function take(count) { + return count <= 0 + ? + function () { return EMPTY; } + : operate(function (source, subscriber) { + var seen = 0; + source.subscribe(createOperatorSubscriber(subscriber, function (value) { + if (++seen <= count) { + subscriber.next(value); + if (count <= seen) { + subscriber.complete(); + } + } + })); + }); +} +//# sourceMappingURL=take.js.map \ No newline at end of file -- cgit v1.2.3