Boolean

Boolean

Source:
All of functions that related to Boolean

Methods

(static) all() → {boolean}

Source:
Check if all value in an array is truthy
Example
Boolean.all([true, true, true]);
//true
Parameters:
Type Description
Array
Returns:
Type
boolean

(static) andNot(a, b) → {boolean}

Source:
AndNot boolean function, see here
Example
Boolean.andNot(true, true);
//false
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean

(static) any() → {boolean}

Source:
Check if at least one value in an array is truthy
Example
Boolean.any([false, true, false]);
//true
Parameters:
Type Description
Array
Returns:
Type
boolean

(static) nand(a, b) → {boolean}

Source:
Nand boolean function, see here
Example
Boolean.nand(true, true);
//false
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean

(static) nor(a, b) → {boolean}

Source:
Nor boolean function, see here
Example
Boolean.nor(true, true);
//false
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean

(static) notAnd(a, b) → {boolean}

Source:
NotAnd boolean function, see here
Example
Boolean.notAnd(true, true);
//false
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean

(static) notOr(a, b) → {boolean}

Source:
NotOr boolean function, see here
Example
Boolean.notOr(true, true);
//true
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean

(static) orNot(a, b) → {boolean}

Source:
OrNot boolean function, see here
Example
Boolean.orNot(true, true);
//true
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean

(static) xnor(a, b) → {boolean}

Source:
Xnor boolean function, see here
Example
Boolean.xnor(true, true);
//true
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean

(static) xor(a, b) → {boolean}

Source:
Xor boolean function, see here
Example
Boolean.xor(true, true);
//false
Parameters:
Name Type Description
a boolean
b boolean
Returns:
Type
boolean