2

There is a proposal that introduces a new way to bind. You can do for example

class Test {
    doIt() { ... }
}
let t = new Test();

doSomething(::this.doIt);

But what if doIt requires one or more params, how can I bind these too ?

::this.doIt(1,2,3)

Which executes the function immediately. Is there a way to do this?

Felix Kling
  • 705,106
  • 160
  • 1,004
  • 1,072
Jeanluca Scaljeri
  • 19,619
  • 37
  • 147
  • 259

0 Answers0