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

x/rambda/mod.ts>pathEq

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

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