say I have
myfunc({
var1: 1,
var2: 2,
})
if i want to have a value that makes use of the current unnamed object, how would I do this?
eg if I wanted
myfunc({
var1: 1,
var2: 2,
var3: this.var1 + this.var2
})
obviously this does not work.
What would the correct syntax be?