CS3 JS: Boolean
From CS3 JavaScript
Boolean
Wraps a boolean value.QuickLinks
Boolean, toSource, toString, valueOfMethods
bool Boolean (value:any)
Creates and returns a new Boolean object set to the value of the argument converted to a boolean.
| Parameter | Type | Description |
|---|---|---|
| value | any | The value to be converted to a Boolean. |
string toSource ()
Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with built-in classes.
string toString ()
Returns the string representation of the value of bool.
bool valueOf ()
Returns the primitive value of bool.