aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/src/internal/util/subscribeToArray.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/src/internal/util/subscribeToArray.ts')
-rw-r--r--node_modules/rxjs/src/internal/util/subscribeToArray.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/node_modules/rxjs/src/internal/util/subscribeToArray.ts b/node_modules/rxjs/src/internal/util/subscribeToArray.ts
deleted file mode 100644
index 0ca5294..0000000
--- a/node_modules/rxjs/src/internal/util/subscribeToArray.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Subscriber } from '../Subscriber';
-
-/**
- * Subscribes to an ArrayLike with a subscriber
- * @param array The array or array-like to subscribe to
- */
-export const subscribeToArray = <T>(array: ArrayLike<T>) => (subscriber: Subscriber<T>) => {
- for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {
- subscriber.next(array[i]);
- }
- subscriber.complete();
-};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage