Why typeof null === "object" in JavaScript Is Not a Bug You Can Fix
If you’ve been writing JavaScript for any length of time, chances are you’ve come across this puzzling behavior:
typeof null; // "object"
At first glance, this seems like a blatant bug—and you’re not wrong. But it’s more complicated than that. This behavior is one