joon hee - StandardLibrary-1.81
NAME
Boolean - deal with true/false values
SYNOPSIS
var x = new Boolean();
DESCRIPTION
Deal with true/false values.
METHODS
Inherited
From Function.prototype: apply, call, toSource, toString, valueOf
From Object.prototype: hasOwnProperty, isPrototypeOf, propertyIsEnumerable, unwatch, watch
Constructor() Returns Boolean
*** Not Implementable in Standard JavaScript
This creates the Boolean Object
valueOf() Returns Boolean
*** Not Implementable in Standard JavaScript
This returns the primitive value of the boolean object.
toString() Returns String
This converts the Boolean to a String.
toSource() Returns String
This converts the Boolean to a string wrapped around the constructor function.
AUTHOR
Jhuni, <jhuni_x@yahoo.com>
COPYRIGHT
Public Domain
/*=pod =head1 NAME Boolean - deal with true/false values =head1 SYNOPSIS var x = new Boolean(); =head1 DESCRIPTION Deal with true/false values. =head1 METHODS =head2 Inherited From Function.prototype: apply, call, toSource, toString, valueOf From Object.prototype: hasOwnProperty, isPrototypeOf, propertyIsEnumerable, unwatch, watch =cut*/ /*=pod =head2 Constructor() Returns Boolean *** Not Implementable in Standard JavaScript This creates the Boolean Object =cut*/ /*=pod =head2 valueOf() Returns Boolean *** Not Implementable in Standard JavaScript This returns the primitive value of the boolean object. =cut*/ /*=pod =head2 toString() Returns String This converts the Boolean to a String. =cut*/ Boolean.prototype.toString = function() { return( (this == true) ? 'true' : 'false' ); }; /*=pod =head2 toSource() Returns String This converts the Boolean to a string wrapped around the constructor function. =cut*/ Boolean.prototype.toSource = function() { return '(new Boolean(' + this.toString() + '))'; }; /*=pod =head1 AUTHOR Jhuni, <jhuni_x@yahoo.com> =head1 COPYRIGHT Public Domain =cut*/