aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/elementAt.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/operators/elementAt.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js b/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js
deleted file mode 100644
index 4d53c66..0000000
--- a/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';
-import { filter } from './filter';
-import { throwIfEmpty } from './throwIfEmpty';
-import { defaultIfEmpty } from './defaultIfEmpty';
-import { take } from './take';
-export function elementAt(index, defaultValue) {
- if (index < 0) {
- throw new ArgumentOutOfRangeError();
- }
- var hasDefaultValue = arguments.length >= 2;
- return function (source) {
- return source.pipe(filter(function (v, i) { return i === index; }), take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new ArgumentOutOfRangeError(); }));
- };
-}
-//# sourceMappingURL=elementAt.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