You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
350 B
9 lines
350 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.count = void 0;
|
|
var reduce_1 = require("./reduce");
|
|
function count(predicate) {
|
|
return reduce_1.reduce(function (total, value, i) { return (!predicate || predicate(value, i) ? total + 1 : total); }, 0);
|
|
}
|
|
exports.count = count;
|
|
//# sourceMappingURL=count.js.map
|