Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/proc/mod.ts>Enumerable#count

A better way to work with processes in Deno.
Go to Latest
method Enumerable.prototype.count
Re-export
import { Enumerable } from "https://deno.land/x/proc@0.21.3/mod.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.