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
  • 756,363
  • 169
  • 1,062
  • 1,111
Jeanluca Scaljeri
  • 22,579
  • 44
  • 171
  • 286

0 Answers0