RE: APIs that have boolean arguments defaulting to true

My impression was that boolean arguments in general should be avoided. "The Boolean Trap", as it's called:

http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html

https://www.google.com/search?q=boolean+trap

For example, `node.clone({ shallow: true })` or `node.clone({ deep: true })` seems much better than `node.clone(true)` or `node.clone(false)`.

Received on Monday, 11 November 2013 20:19:27 UTC