By banishing the bad part of the language with linter.
For instance, standard eslint preset has rules that enforce usage of ===
, https://eslint.org/docs/latest/rules/eqeqeq
These rules often come with project starter template
By banishing the bad part of the language with linter.
For instance, standard eslint preset has rules that enforce usage of ===
, https://eslint.org/docs/latest/rules/eqeqeq
These rules often come with project starter template
Looks confusing at first, but I found it nice for accessing a month array.
const months = ["Jan", "Feb", ...];
months[0] === "Jan";
const label = months[date.getMonth()];
maybe it is similar to “how to destroy all instances belonging to a class”
What is a CVS receipt layout? Why do you hate it?