prop
prop<
S>(): <K>(key) =>Lens<S,S[K]>
Defined in: Core/Lens.ts:55
Creates a Lens that focuses on a property of an object. Call with the structure type first, then the key.
Type Parameters
Section titled “Type Parameters”S
Returns
Section titled “Returns”<
K>(key):Lens<S,S[K]>
Type Parameters
Section titled “Type Parameters”K extends string | number | symbol
Parameters
Section titled “Parameters”K
Returns
Section titled “Returns”Lens<S, S[K]>