4 ms·
> Javascript doesn't have a logical xor operator x != y
by joshuaissac 5y ago
> Javascript doesn't have a logical xor operator
x != y
- dhosek 5y agoAlthough with the looseness around booleans in JS, I'd imagine that you might need to do something more like `(x==true) != (y==true)`
- LordDragonfang 5y agoA common hack, and that's where the "potentially reduce readability" caveat comes in.