4 ms·
eslint can disallow == for anything but `== null`. Problem solved. https://eslint.org/docs/rules/eqeqeq https://eslint.org/docs/rules/eqeqeq
by awestroke 8y ago
eslint can disallow == for anything but `== null`. Problem solved.
https://eslint.org/docs/rules/eqeqeq https://eslint.org/docs/rules/eqeqeq
- TheDong 8y agoThis thread is about not using `===`; it's obviously true that it can be disallowed entirely, but it can't be allowed based on whether or not it will coerce, which was the context of the thread.