Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fae/lensProp.ts>lensProp

A functional module for Deno inspired from Ramda.
Latest
variable lensProp
import { lensProp } from "https://deno.land/x/fae@v1.1.1/lensProp.ts";

Returns a lens whose focus is the specified property

 const xLens = Fae.lensProp('x')
 Fae.view(xLens, {x: 1, y: 2})

type

LensProp