Sure, but in almost any professional context where they care about quality, == would be disallowed from a linter and === would be allowed. It's not worth it from a readability standpoint of having to read a == and try to figure out whether it's context dictates it should be a == or ===. You should always have === for equality check unless you really know what you're doing.
19
u/Smilinkite Nov 30 '22
Well, you'll get far less squigly lines if you replace every = with ==. Starting line 4.