Boolean objects in conditionals

Peter Michaux petermichaux at
Fri Nov 28 17:07:27 PST 2008

On Fri, Nov 28, 2008 at 2:20 PM, Lasse R.H. Nielsen

> If objects are no longer all "true", then I would prefer each object to
> be able to decide its truth value.

An object's toString method is called when the object is coerced to a
string. Why not toNumber and toBoolean?


More information about the Es-discuss mailing list