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

x/rambda/immutable.d.ts>propEq

Faster and smaller alternative to Ramda
Go to Latest
function propEq
import { propEq } from "https://deno.land/x/rambda@v8.6.0/immutable.d.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; }