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

x/rambda/mod.ts>lensProp

Faster and smaller alternative to Ramda
Go to Latest
function lensProp
import { lensProp } from "https://deno.land/x/rambda@v8.6.0/mod.ts";

It returns a lens that focuses on specified property prop.

Parameters

prop: string

Returns

{ <T, U>(obj: T): U; set<T, U, V>(val: T, obj: U): V; }