Get a resource value by path
Optional
path of the resource, default to internal state path
if the resource does not exist, return undefined instead of throwing an error
resource value
Get a resource value by path