The _.lookupSetter() function from lodash is used to get the setter function for a given property.
Here is an example:
index.tsx132 chars7 linesIn the example above, the _.lookupSetter() function is used to get the setter function for the value property of the object. The returned setter function is then used to set the value property to 21.
gistlibby LogSnag