For example
const obj = {
get test() {
return 'something'
}
}
Is there a way to return obj.test
as the function itself as opposed to 'something'
, as there is currently a use case where I don't want the function to execute immediately. Or is the only method to make it not a getter function