Skip to main content
Module

x/lazy/lib/lazy.ts>Lazy#count

A linq-like lazy-evaluation enumerable/iteration library that aims to support deno, node & browser
Latest
method Lazy.prototype.count
import { Lazy } from "https://deno.land/x/lazy@v1.7.3/lib/lazy.ts";

Returns the number of elements in the iterable.

Returns

number

The number of elements in the iterable.

Returns the number of elements that satify the given condition.

Parameters

predicate: BoolPredicate<TElement>

The predicate to test each element with.

Returns

number

The number of elements in the iterable that matched the condition.