Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Boolean.prototype.toSource()

No estándar
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Resumen

Devuelve una cadena que representa el código fuente del objeto.

Sintaxis

toSource()

Parámetros

Ninguno.

Descripción

El método toSource devuelve los siguientes valores:

  • Para objetos built-in Boolean, toSource devuelve la siguiente cadena indicando que el código fuente no está disponible:
function Boolean() {
   [código nativo]
}
  • Para instancias de Boolean, toSource devuelve una cadena representando el código fuente.

Este método se utiliza habitualmente en llamadas internas por JavaScript y no en código explícito.

Vea También

Etiquetas y colaboradores del documento

 Colaboradores en esta página: teoli, Talisker
 Última actualización por: teoli,