Developer Resources
Boolean
Overview
A wrapper class for the boolean-typed data.
Base Class
Constructor
- Boolean(value : Boolean)
Arguments
- value
- The value of the new Boolean object.
Methods
- Boolean.toString
- Returns a string representation of the Boolean object.
- Boolean.valueOf
- Returns the primitive boolean value of the Boolean object.
Inherited Methods
- Object.hasOwnProperty
- Checks for the existence of an object property
- Object.toLocaleString
- Returns a string that represents the object.
- Object.toString
- Returns a string that represents the object.
- Object.valueOf
- Returns the 'primitive' value of the object.
Boolean.toString
- function Boolean.toString() : String
Returns
Returns either "true" or "false", depending on the value of the Boolean object.
Description
Returns a string representation of the Boolean object, which is either "true" or "false".
Boolean.valueOf
- function Boolean.valueOf() : Boolean
Returns
Returns the primitive boolean value represented by the Boolean object.
Description
Returns the primitive boolean value represented by the Boolean object.