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

x/rambda/rambda.js>paths

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

It loops over members of pathsToSearch as singlePath and returns the array produced by R.path(singlePath, Record<string, unknown>).

Because it calls R.path, then singlePath can be either string or a list.

Parameters

pathsToSearch: Path[]
obj: Input

Returns

(T | undefined)[]

Parameters

pathsToSearch: Path[]

Returns

(obj: Input) => (T | undefined)[]

Parameters

pathsToSearch: Path[]
obj: any

Returns

(T | undefined)[]

Parameters

pathsToSearch: Path[]

Returns

(obj: any) => (T | undefined)[]