Public

#api #javascript #programming
The Pitfalls of Boolean Trap
The Pitfalls of Boolean Trap

Good little article about the pitfalls of using boolean values as parameters for a function. Not the first time I've seen this sort of thing (I'm sure I read a similar article years before, and a similar thing in a coding book even earlier).

Still good advice.

At least it's a little better in languages with keyword arguments.

·ariya.io·
The Pitfalls of Boolean Trap