Update article.md
This commit is contained in:
parent
9b3b10f507
commit
6db57d9494
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ As we can see, the new function is a wrapper around the original `loadScript` fu
|
|||
|
||||
Now `loadScriptPromise` fits well in promise-based code. If we like promises more than callbacks (and soon we'll see more reasons for that), then we will use it instead.
|
||||
|
||||
In practice we may need to promisify more than one function, so it makes sense to use a helper.
|
||||
In practice we may need to promisify more than one function, so it makes sense to use a helper.
|
||||
|
||||
We'll call it `promisify(f)`: it accepts a to-promisify function `f` and returns a wrapper function.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue