We're a place where coders share, stay up-to-date and grow their careers.
And doesn't work as expected.... Boolean(123.1^123) // false, but should be true
Boolean(123.1^123) // false, but should be true
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.
And doesn't work as expected....
Boolean(123.1^123) // false, but should be true
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.