xor ()
xor
(
x
)
:
(
(
y
)
=>
boolean
)
Logical XOR (exclusive OR) of two boolean values.
Parameters
x
:
boolean
Returns
(
(
y
)
=>
boolean
)
(
y
)
:
boolean
Parameters
y
:
boolean
Returns
boolean
Example
xor
(
true
)(
false
)
// true
xor
(
true
)(
true
)
// false
Back to index
Logical XOR (exclusive OR) of two boolean values.