Methods
isBoolean(value) → {Boolean}
Returns if a value is a boolean value.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
Returns:
true if value is a boolean
- Type
- Boolean
Example
if( isBoolean(val) ){
console.log('val must be either true or false');
}