DEV Community

Discussion on: Is there a reason to use == over ===?

 
mellen profile image
Matt Ellen-Tsivintzeli

That's all evidence why you should use ===.

Would you say that there is no reason to use ==?

Thread Thread
 
theaccordance profile image
Joe Mainwaring

Never say never, there’s probably some context out there where it still makes sense. It would be safe to take the position of defaulting to === and if you encounter an exception, then you make that decision.