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
  • 795,719
  • 175
  • 1,089
  • 1,143
Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333

0 Answers0