.. _Boolean: ================================================ Boolean ================================================ Description ----------- Wraps a Boolean value. Constructors ^^^^^^^^^^^^ +------------------------------------------+---------------------------------------------------------------------------------------------------+ | :ref:`Boolean` readonly | Creates and returns a new Boolean object set to the value of the argument converted to a boolean. | +------------------------------------------+---------------------------------------------------------------------------------------------------+ Methods ^^^^^^^ +--------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toSource` readonly | 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. | +--------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toString` readonly | Returns the string representation of the value of bool. | +--------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`valueOf` readonly | Returns the primitive value of bool. | +--------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 Boolean/toSource.rst Boolean/toString.rst Boolean/valueOf.rst Boolean/Boolean.rst