Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>count

Faster and smaller alternative to Ramda
Go to Latest
function count
import { count } from "https://deno.land/x/rambda@9.2.1/mod.ts";

It counts how many times predicate function returns true, when supplied with iteration of list.

Parameters

predicate: (x: T) => boolean
list: T[]

Returns

number

Parameters

predicate: (x: T) => boolean

Returns

(list: T[]) => number