3 ms·ESLint has a rule to prevent this. http://eslint.org/docs/rules/yoda http://eslint.org/docs/rules/yodaby pier25 10y agoESLint has a rule to prevent this. http://eslint.org/docs/rules/yoda http://eslint.org/docs/rules/yoda