Skip to main content
Module

x/rambda/index.d.ts>lensProp

Faster and smaller alternative to Ramda
Go to Latest
function lensProp
import { lensProp } from "https://deno.land/x/rambda@v7.0.1/index.d.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; }