Skip to main content
Module

x/rambda/index.d.ts>propEq

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