The two-line JavaScript design pattern that covers a multitude of sins
Because nothing is fool-proof to a talented fool.
Published in
3 min readFeb 17, 2021
What’s the problem? 😩
There’s always one isn’t there? That junior dev who writes things like if (x === undefined)
, or that one package that pollutes the global scope with loads of garbage you don’t need. Or maybe it’s a…