- cross-posted to:
- technews@radiation.party
- cross-posted to:
- technews@radiation.party
I think we need all support we can get to fight Google on this, so I welcome Brave here actually.
Use this link to avoid going to Twitter:
https://nitter.kavin.rocks/BrendanEich/status/1684561924191842304
I was incorrect; the first part of my answer was my initial guess, in which I thought a boolean was returned; this is not explicitly the case. I checked and found what you were saying in the second part of my answer.
You could use strict equality operators in a conditional to verify types before the main condition, or use Typescript if that’s your thing. Types are cool and great and important for a lot of scenarios (used them both in Java and Python), but I rarely run into issues with the script-level stuff I make in JavaScript.