Skip to main content
Module

x/fae/eqProps.ts>eqProps

A functional module for Deno inspired from Ramda.
Latest
variable eqProps
import { eqProps } from "https://deno.land/x/fae@v1.1.1/eqProps.ts";

Reports whether two objects have the same value, for the specified property. Useful as a curried predicate.

 const obj1 = { a: 1, b: 2, c: 3, d: 4 }
 const obj2 = { a: 10, b: 20, c: 3, d: 40 }
 Fae.eqProps('a', obj1, obj2) //=> false
 Fae.eqProps('c', obj1, obj2) //=> true

type

EqProps