Skip to main content
Module

x/fae/mod.ts>lensProp

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

Returns a lens whose focus is the specified property

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

type

LensProp