Methods
(static) all() → {boolean}
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}
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}
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}
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}
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}
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}
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}
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}
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}
Xor boolean function, see here
Example
Boolean.xor(true, true);
//false
Parameters:
Name | Type | Description |
---|---|---|
a |
boolean | |
b |
boolean |
Returns:
- Type
- boolean