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
• V
Parameters
lensVal
Lens
<T
, V
>
The Lens to get the getter of.
Returns
Function
Parameters
obj
T
Returns
V
Remark
pure function
Example
get(nameLens)(personStore);