Module

x/rambda/rambda.js>propEq

Faster and smaller alternative to Ramda
Latest
function propEq
import { propEq } from "https://dotland.deno.dev/x/rambda@9.4.1/rambda.js";

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; }