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 5bcc229 commit 3edaf8bCopy full SHA for 3edaf8b
JavaScript/3-callback.js
@@ -10,7 +10,7 @@ const wrapFunction = fn => {
10
if (typeof callback === 'function') {
11
args[args.length - 1] = (...args) => {
12
console.log('Callback:', fn.name);
13
- callback(...args);
+ return callback(...args);
14
};
15
}
16
0 commit comments