We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7401005 commit f3b843dCopy full SHA for f3b843d
JavaScript/3-callback.js
@@ -5,7 +5,7 @@
5
6
// const wrapAsync = (before, after, beforeCb, afterCb, fn) =>
7
// (...args) => {
8
-// const callback = arr[arr.length -1];
+// const callback = args[args.length -1];
9
// if (typeof callback === 'function') {
10
// args[args.length - 1] = (...pars) =>
11
// afterCb(callback(...beforeCb(...pars)));
0 commit comments