Closed cdcme closed 11 years ago
Hi and thank you for the kind words. The goal of truthy
is to simplify the truthiness in JavaScript to a model like Ruby (as one example): null
and false
are falsey and everything else is truthy. If I use !!x
then I'm right back into 0
and ''
being falsey -- the thing I was hoping to avoid. :-)
Oh yeah, of course! Thanks!
Awesome book. I love it.
About your helper predicates, existy() and truthy(), couldn't you just do:
Granted, it doesn't really illustrate the idea of composing functions from functions but is more succinct, I think.