SyntaxFix
Write A Post
Hire A Developer
Questions
You can create a function that checks the typeof for an argument.
typeof
function isBoolean(value) { return typeof value === "boolean"; }