Skip to content

Commit c561bb3

Browse files
committed
Typeof syntax
1 parent c9364a9 commit c561bb3

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
@@ -7,7 +7,7 @@ const wrapFunction = fn => {
77
console.dir({ args });
88
if (args.length > 0) {
99
let callback = args[args.length - 1];
10-
if (typeof(callback) === 'function') {
10+
if (typeof callback === 'function') {
1111
args[args.length - 1] = (...args) => {
1212
console.log('Callback: ' + fn.name);
1313
callback(...args);

0 commit comments

Comments
 (0)