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

x/rambda/mod.ts>propEq

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

It returns true if obj has property propToFind and its value is equal to valueToMatch.

Type Parameters

K extends string | number

Parameters

valueToMatch: any
propToFind: K
obj: Record<K, any>

Returns

boolean

Type Parameters

K extends string | number

Parameters

valueToMatch: any
propToFind: K

Returns

(obj: Record<K, any>) => boolean

Parameters

valueToMatch: any

Returns

{ <K extends string | number>(propToFind: K, obj: Record<K, any>): boolean; <K extends string | number>(propToFind: K): (obj: Record<K, any>) => boolean; }