Namespace: Basic:isBoolean

Basic:isBoolean

Source:

Methods

isBoolean(value) → {Boolean}

Returns if a value is a boolean value.

Parameters:
Name Type Description
value *

the value to check

Source:
Returns:
true if value is a boolean
Type
Boolean
Example
if( isBoolean(val) ){
  console.log('val must be either true or false');
}