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