Skip to main content
Module

x/rambda/immutable.d.ts>count

Faster and smaller alternative to Ramda
Latest
function count
import { count } from "https://deno.land/x/rambda@v9.2.0/immutable.d.ts";

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

Parameters

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

Returns

number

Parameters

predicate: (x: T) => boolean

Returns

(list: readonly T[]) => number