The answer above, I want to add a little to help clarify:
Suppose we have a class:
class TClass {
constructor(arg) {
this.arg = arg
}
test() {
console.log(this.arg)
}
}
This will NOT work:
const t = new TClass("test")
const method = t.test
method()
This will work:
const t = new TClass("test")
t.test()
And the reason is because the comments above, the function link has no context