Skip to content

Commit 9bc91ef

Browse files
committed
Update is_bool.js
1 parent 3fc182d commit 9bc91ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/var/is_bool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ function is_bool (mixed_var) {
66
// * returns 1: true
77
// * example 2: is_bool(0);
88
// * returns 2: false
9-
return (obj === true || obj === false); // Faster (in FF) than type checking
9+
return (mixed_var === true || mixed_var === false); // Faster (in FF) than type checking
1010
}

0 commit comments

Comments
 (0)