Checks that the value is a boolean.
boolean(1); // Error: typeboolean(true); // passes Copy
boolean(1); // Error: typeboolean(true); // passes
Checks that the value is a boolean.
Example