Module

x/rambda/index.d.ts>count

Faster and smaller alternative to Ramda
Go to Latest
function count
import { count } from "https://dotland.deno.dev/x/rambda@v9.2.0/index.d.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