Skip to main content
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