Y
Hacker News
new
|
ask
|
show
|
jobs
by
queenkjuul
433 days ago
Can't you `function.bind(context, ...)` or am i misunderstanding
1 comments
wruza
433 days ago
Bind substitutes `this`, not global scope. With function envs you can write functions like function () {a += 1} and have it increment `a` in some object.
link