UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

12 lines (9 loc) 250 B
import { curry } from './curry.js' import { equals } from './equals.js' import { path } from './path.js' function pathEqFn( pathToSearch, target, input ){ return equals(path(pathToSearch, input), target) } export const pathEq = curry(pathEqFn)