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

x/rambda/immutable.d.ts>paths

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

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: readonly Path[]
obj: Input

Returns

readonly (T | undefined)[]

Parameters

pathsToSearch: readonly Path[]

Returns

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

Parameters

pathsToSearch: readonly Path[]
obj: any

Returns

readonly (T | undefined)[]

Parameters

pathsToSearch: readonly Path[]

Returns

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