Boolean.valueOf() (Method)

Returns the primitive value of the Boolean object.

Availability:

ECMAScript edition - 2
JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Property/method value type:Boolean primitive
JavaScript syntax:-myBoolean.valueOf()

The Boolean object is converted to a Boolean primitive and returned to the caller.

See also:Boolean.prototype, Cast operator, valueOf()

Cross-references:

ECMA 262 edition 2 - section - 15.6.4.3

ECMA 262 edition 3 - section - 15.6.4.3