How can I check if a variable\'s type is of type Boolean?
I mean, there are some alternatives such as:
if(jQuery.type(new Boolean()) === jQuery.type(
You can use pure Javascript to achieve this:
var test = true; if (typeof test === 'boolean') console.log('test is a boolean!');