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
T
The type of the object being inspected.
V
V
The type of the property value.
Parameters
lensVal
Lens<T, V>
The Lens to get the getter of.
Returns
(
obj):V
Parameters
obj
T
Returns
V
Remarks
pure function
Example
get(nameLens)(personStore);