#ActuallyAutistic web dev. Does front of the front-end. Loves perf and minimalism. Prefers HTML, CSS, Web Standards over JS, UX over DX. Hates div disease.
#ActuallyAutistic web dev. Does front of the front-end. Loves perf and minimalism. Prefers HTML, CSS, Web Standards over JS, UX over DX. Hates div disease.
Tip: instead of
something === undefined && something === null
you can writesomething == null
and it matches both undefined and null, and only them.I find it the only valid case to use
==
over===
.That's true, but oftentimes you have a linter which forces to use "eqeqeq"
Only if you have had someone strongly opinioned setting it up :) And even then you have the
null: ignore
option for it.True! Thanks!