Skip to main content
Module

x/rambda/index.d.ts>prop

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

It returns the value of property propToFind in obj.

If there is no such property, it returns undefined.

Type Parameters

P extends keyof T
T

Parameters

propToFind: P
obj: T

Type Parameters

P extends string | number

Returns

<T>(propToFind: Record<P, T>) => T

Type Parameters

P extends keyof T
T

Returns

(propToFind: Record<P, T>) => T