Skip to content

Commit 43d5935

Browse files
committed
improving on issue chuanxshi#42 changed == to ===
1 parent 805176f commit 43d5935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function-patterns/callback.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
var node = complexComputation();
2020

2121
// call if callback is callable
22-
if (typeof callback == "function") {
22+
if (typeof callback === "function") {
2323
callback(node);
2424
}
2525

0 commit comments

Comments
 (0)