Skip to content

Commit f3b843d

Browse files
Vlad Esintshemsedinov
authored andcommitted
Typo correction (#5)
1 parent 7401005 commit f3b843d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JavaScript/3-callback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// const wrapAsync = (before, after, beforeCb, afterCb, fn) =>
77
// (...args) => {
8-
// const callback = arr[arr.length -1];
8+
// const callback = args[args.length -1];
99
// if (typeof callback === 'function') {
1010
// args[args.length - 1] = (...pars) =>
1111
// afterCb(callback(...beforeCb(...pars)));

0 commit comments

Comments
 (0)