method Enumerable.prototype.count
Enumerable.prototype.count(filterFn?: (item: T) => boolean | Promise<boolean>): Promise<number>

Count the number of items; optionally with a filter.

Parameters

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

Includes items where filter returns true.

Return Type

Promise<number>

A count of the items.

Usage

import { Enumerable } from ".";