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.
El m茅todo toSource()
devuelve un string representando el c贸digo fuente de un arreglo.
Sintaxis
arr.toSource()
Valor devuelto
Un string representando el c贸digo fuente del arreglo.
Descripci贸n
El m茅todo toSource
r retorna los siguientes valores:
- Para el objeto global
Array
,toSource
devuelve el siguiente string indicando que el c贸digo fuente no est谩 disponible:function Array() { [native code] }
- Para instancias de
Array
,toSource
devuelve un string representando el c贸digo fuente.
Este m茅todo suele ser llamado internamente por JavaScript y no expl铆citamente en c贸digo. Puede usar toSource
mientras depura para examinar el contenido de un arreglo.
Ejemplos
Examinar el c贸digo fuente de un arreglo
Para examinar el c贸digo fuente de un arreglo:
var alpha = new Array('a', 'b', 'c');
alpha.toSource();
//devuelve ['a', 'b', 'c']
Especificaciones
No hace parte de ning煤n est谩ndar. Implementado en JavaScript 1.3.
Compatibilidad con navegadores
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Caracter铆stica | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Soporte b谩sico | Sin soporte | Sin soporte | (Yes) | Sin soporte | Sin soporte | Sin soporte |
Caracter铆stica | Android | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Soporte b谩sicot | Sin soporte | Sin soporte | Sin soporte | (Yes) | Sin soporte | Sin soporte | Sin soporte |