DEV Community

loading...

Discussion on: 17 Pro JavaScript tricks you didn't know

Collapse
aralroca profile image
Aral Roca

And doesn't work as expected.... Boolean(123.1^123) // false, but should be true

Collapse
hoggworks profile image
Brian Hogg

Yeah, the XOR operator isn't doing an equivalence check, at least not in the way the OP is presenting. It's just not a relevant tool to use, I don't think.

Forem Open with the Forem app