Update article.md

This commit is contained in:
LeviDing 2020-11-16 15:53:33 +08:00 committed by GitHub
parent 9b3b10f507
commit 6db57d9494
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.