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 3fc182d commit 9bc91efCopy full SHA for 9bc91ef
functions/var/is_bool.js
@@ -6,5 +6,5 @@ function is_bool (mixed_var) {
6
// * returns 1: true
7
// * example 2: is_bool(0);
8
// * returns 2: false
9
- return (obj === true || obj === false); // Faster (in FF) than type checking
+ return (mixed_var === true || mixed_var === false); // Faster (in FF) than type checking
10
}
0 commit comments