Skip to main content
Module

x/fae/mod.ts>whereEq

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

Takes a spec object and a test object, returns true if the test satisfies the spec, false otherwise. whereEq is a specialization of [where].

 const pred = Fae.whereEq({a: 1, b: 2})

 pred({a: 1})              //=> false
 pred({a: 1, b: 2})        //=> true
 pred({a: 1, b: 2, c: 3})  //=> true
 pred({a: 1, b: 1})        //=> false

type

WhereEq