Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/proc/src/enumerable.ts>Enumerable#count

A better way to work with processes in Deno.
Very Popular
Go to Latest
method Enumerable.prototype.count
import { Enumerable } from "https://deno.land/x/proc@0.20.34/src/enumerable.ts";

Count the number of items; optionally with a filter.

Parameters

optional
filterFn: (item: T) => boolean | Promise<boolean>

Includes items where filter returns true.

Returns

Promise<number>

A count of the items.