Boolean

Moduleejs
Definitionfinal class Boolean
InheritanceBoolean inherit Object
StabilityStable.

Boolean class.

The Boolean class is used to create two immutable boolean values: "true" and "false".


Properties

QualifiersPropertyTypeDescription
No properties defined

Boolean Methods

QualifiersMethod
Boolean(value: Boolean = false)
 Boolean constructor.

Method Detail

public Boolean(value: Boolean = false)

Boolean constructor.

Description
Construct a Boolean object and initialize its value. Since Boolean values are immutable, this constructor will return a reference to either the "true" or "false" values.
Parameters
value: Boolean Optional value to use in creating the Boolean object. If the value is omitted or 0, -1, NaN, false, null, undefined or the empty string, then the object will be created and set to false. [default: false]
value: Boolean [default: false]