Module

x/rambda/mod.ts>prop

Faster and smaller alternative to Ramda
Latest
function prop
import { prop } from "https://dotland.deno.dev/x/rambda@9.4.1/mod.ts";

It returns the value of property propToFind in obj.

If there is no such property, it returns undefined.

Type Parameters

_
P extends keyof never
T

Parameters

p: P
value: T

Returns

Prop<T, P>

Parameters

p: keyof never
value: unknown

Type Parameters

_
P extends keyof never

Returns

<T>(value: T) => Prop<T, P>

Parameters

p: keyof never

Returns

(value: unknown) => V