I have a function like this:
this.doStuff({
'testkey': {
testfunction: function() {
// will return testfunction
console.log(Object.keys(this));
}
}
});
Is there are a way of getting testkey
within the testfunction scope?
The Object.keys(this)
will return testfunction
.