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

x/rambda/mod.ts>prop

Faster and smaller alternative to Ramda
Go to Latest
function prop
import { prop } from "https://deno.land/x/rambda@9.2.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