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

x/rambda/rambda.js>pathEq

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

It returns true if pathToSearch of input object is equal to target value.

pathToSearch is passed to R.path, which means that it can be either a string or an array. Also equality between target and the found value is determined by R.equals.

Parameters

pathToSearch: Path
target: any
input: any

Returns

boolean

Parameters

pathToSearch: Path
target: any

Returns

(input: any) => boolean

Parameters

pathToSearch: Path

Returns

(target: any) => (input: any) => boolean