Boolean
Module | ejs |
Definition | final class Boolean |
Inheritance | Boolean ![]() |
Stability | Stable. |
Boolean class from which to create true and false values.
Properties
(No own properties defined)
Boolean Class Methods
Qualifiers | Method |
---|
Boolean Instance Methods
Qualifiers | Method |
---|---|
Boolean(value: Boolean = false) | |
Boolean constructor. |
Method Detail
Boolean(value: Boolean = false)
- Description
- Boolean constructor. 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]