wrapper instead of helper
"helper function" term reminds "utility libraries" but "wrapper" term refers "function decorators" and in this context wrapper can be more self-descriptive and meaningful.
This commit is contained in:
parent
b2305cebf0
commit
81f171e10d
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ What if we'd like to fix some arguments, but not the context `this`? For example
|
||||||
|
|
||||||
The native `bind` does not allow that. We can't just omit the context and jump to arguments.
|
The native `bind` does not allow that. We can't just omit the context and jump to arguments.
|
||||||
|
|
||||||
Fortunately, a helper function `partial` for binding only arguments can be easily implemented.
|
Fortunately, a wrapper function `partial` for binding only arguments can be easily implemented.
|
||||||
|
|
||||||
Like this:
|
Like this:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue