Module: sources/cores/booleans/isTrue

Export function to validate if a value is a boolean set to true or false
Author:
License:
Source:

Example

import { isTrue } from 'itee-validators'

if( isTrue( value ) ) {
    //...
} else {
    //...
}

Methods


<static> isFalse(data)

Check if given data is a boolean with value to false
Parameters:
Name Type Description
data * The data to check against false value
Source:
Returns:
true if data is a boolean set to false, false otherwise.
Type
boolean

<static> isTrue(data)

Check if given data is a boolean with value to true
Parameters:
Name Type Description
data * The data to check against true value
Source:
Returns:
true if data is a boolean set to true, false otherwise.
Type
boolean