_.result(object, path, [defaultValue])
This method is like _.get except that if the resolved value is a function it's invoked with the this binding of its parent object and its result is returned.
Arguments
object (Object): The object to query.
path (Array|string): The path of the property to resolve.
[defaultValue] (*): The value returned for undefined resolved values.
Returns
(*): Returns the resolved value.