diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/operators/count.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm/internal/operators/count.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/operators/count.js b/node_modules/rxjs/dist/esm/internal/operators/count.js new file mode 100644 index 0000000..e53cbaa --- /dev/null +++ b/node_modules/rxjs/dist/esm/internal/operators/count.js @@ -0,0 +1,5 @@ +import { reduce } from './reduce'; +export function count(predicate) { + return reduce((total, value, i) => (!predicate || predicate(value, i) ? total + 1 : total), 0); +} +//# sourceMappingURL=count.js.map
\ No newline at end of file |
