The Boolean object is an object wrapper for a boolean value.
Parameters value The initial value of the Boolean object.
The value is converted to a boolean value, if necessary. Description Use a Boolean object when you need to convert a non-boolean value to a boolean value. You can use the Boolean object any place JavaScript expects a primitive boolean value. JavaScript returns the primitive value of the Boolean object by automatically invoking the valueOf method. Property Summary prototype Defines a property that is shared by all Boolean objects.