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

x/rambda/index.d.ts>hasPath

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

It will return true, if input object has truthy path(calculated with R.path).

Parameters

path: string | string[]
input: object

Returns

boolean

Parameters

path: string | string[]

Returns

(input: object) => boolean