Visit Mozilla.org

Dokumentacja języka JavaScript 1.5:Obiekty:Boolean:prototype

z Mozilla Developer Center, polskiego centrum programistów Mozilli.

UWAGA: Tłumaczenie tej strony nie zostało zakończone.
Może być ona niekompletna lub wymagać korekty.
Chcesz pomóc? | Dokończ tłumaczenie | Sprawdź ortografię | Więcej takich stron...

Spis treści

[edytuj] Podsumowanie

Reprezentuje prototyp konstruktora Boolean.

[edytuj] Opis

Instancje Boolean dziedziczą z Boolean.prototype. You can use the constructor's prototype object to add properties or methods to all Boolean instances.

[edytuj] Własności

constructor
Returns the function that created an instance's prototype. This is the Boolean function by default.

[edytuj] Metody

toSource
Returns a string containing the source of the Boolean object; you can use this string to create an equivalent object. Overrides the Object.prototype.toSource method.
toString
Returns a string of either "true" or "false" depending upon the value of the object. Overrides the Object.prototype.toString method.
valueOf
Returns the primitive value of the Boolean object. Overrides the Object.prototype.valueOf method.

Metody dziedziczone z Object.prototype
__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, unwatch, watch