/ Published in: JavaScript
There's no logical XOR in Javascript - no a ^^ b. Here's a workaround - note that null, undefined, '', 0 all count as 'false'
Expand |
Embed | Plain Text
(!a != !b )
You need to login to post a comment.
There's no logical XOR in Javascript - no a ^^ b. Here's a workaround - note that null, undefined, '', 0 all count as 'false'
(!a != !b )
You need to login to post a comment.