get()
get<
T
,V
>(lensVal
): (obj
) =>V
A simple warpper function to access the get
of a lens and the given object.
Type Parameters
• T
The type of the object being inspected.
• V
The type of the property value.
Parameters
lensVal
Lens
<T
, V
>
The Lens to get the getter of.
Returns
Function
Parameters
obj
T
Returns
V
Remarks
pure function
Example
get(nameLens)(personStore);