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 c9364a9 commit c561bb3Copy full SHA for c561bb3
JavaScript/3-callback.js
@@ -7,7 +7,7 @@ const wrapFunction = fn => {
7
console.dir({ args });
8
if (args.length > 0) {
9
let callback = args[args.length - 1];
10
- if (typeof(callback) === 'function') {
+ if (typeof callback === 'function') {
11
args[args.length - 1] = (...args) => {
12
console.log('Callback: ' + fn.name);
13
callback(...args);
0 commit comments