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

x/rambda/mod.ts>eqProps

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

It returns true if property prop in obj1 is equal to property prop in obj2 according to R.equals.

Parameters

prop: string
obj1: T
obj2: U

Returns

boolean

Type Parameters

P extends string

Returns

<T, U>(obj1: Record<P, T>, obj2: Record<P, U>) => boolean

Parameters

prop: string
obj1: T

Returns

<U>(obj2: U) => boolean