I've got a lot of this in my code:
var self = this;
let foob = _.filter(data, function(d) { return d.bar == self.do(); });
Is there a way to avoid having to declare a new variable to reference a context?
I've got a lot of this in my code:
var self = this;
let foob = _.filter(data, function(d) { return d.bar == self.do(); });
Is there a way to avoid having to declare a new variable to reference a context?