const obj = {first: function() {console.log("ssss"); return "returns"} }; console.log(_.result(obj, "first")); /*note that _.result() returns a value, so if your function doesn't return anything _.result() will return undefined*/