diff options
author | julieng <julien.gattelier@gmail.com> | 2021-08-03 08:03:09 +0200 |
---|---|---|
committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-09-03 08:08:25 +0200 |
commit | 844f5103992238c0c23203286dad16a466e89c97 (patch) | |
tree | d537708951bb2b61be8192ffacc05a0ce6804f89 /files/fr/web/javascript/reference/global_objects/array/tosource/index.html | |
parent | a70fd5b73ecb10bec3906640023e2a1a46e118a2 (diff) | |
download | translated-content-844f5103992238c0c23203286dad16a466e89c97.tar.gz translated-content-844f5103992238c0c23203286dad16a466e89c97.tar.bz2 translated-content-844f5103992238c0c23203286dad16a466e89c97.zip |
move *.html to *.md
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects/array/tosource/index.html')
-rw-r--r-- | files/fr/web/javascript/reference/global_objects/array/tosource/index.html | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/array/tosource/index.html b/files/fr/web/javascript/reference/global_objects/array/tosource/index.html deleted file mode 100644 index d4c832779b..0000000000 --- a/files/fr/web/javascript/reference/global_objects/array/tosource/index.html +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: Array.prototype.toSource() -slug: Web/JavaScript/Reference/Global_Objects/Array/toSource -tags: - - Array - - JavaScript - - Méthode - - Non-standard - - Prototype - - Reference -translation_of: Web/JavaScript/Reference/Global_Objects/Array/toSource -original_slug: Web/JavaScript/Reference/Objets_globaux/Array/toSource ---- -<div>{{JSRef}}{{Non-standard_header}}</div> - -<p>La méthode <strong><code>toSource()</code></strong> renvoie une chaine de caractères représentant le code source du tableau.</p> - -<h2 id="Syntaxe">Syntaxe</h2> - -<pre class="syntaxbox"><var>arr</var>.toSource()</pre> - -<h3 id="Valeur_de_retour">Valeur de retour</h3> - -<p>Une chaîne de caractères qui représente le code source du tableau.</p> - -<h2 id="Description">Description</h2> - -<p>La méthode <code>toSource()</code> renvoie les valeurs suivantes :</p> - -<ul> - <li>Pour l'objet {{jsxref("Array")}} natif, <code>toSource()</code> renvoie la chaîne de caractères suivante indiquant que le code source n'est pas disponible : - - <pre class="brush: js">function Array() { - [native code] -} -</pre> - </li> - <li>Pour les instances d'{{jsxref("Array")}}, <code>toSource()</code> renvoie une chaîne représentant le code source.</li> -</ul> - -<p>Cette méthode est habituellement appelée en interne par le moteur JavaScript et n'est pas utilisée explicitement dans du code. Il est cependant possible d'appeler <code>toSource()</code> lors du débogage pour examiner le contenu d'un tableau.</p> - -<h2 id="Exemples">Exemples</h2> - -<h3 id="Examiner_le_code_source_d'un_tableau">Examiner le code source d'un tableau</h3> - -<p>Pour examiner le code source d'un tableau :</p> - -<pre class="brush: js">var alpha = new Array("a", "b", "c"); -alpha.toSource(); -// renvoie ["a", "b", "c"] -</pre> - -<h2 id="Spécifications">Spécifications</h2> - -<p>Ne fait partie d'aucun standard. Implémenté dans JavaScript 1.3.</p> - -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - -<p>{{Compat("javascript.builtins.Array.toSource")}}</p> - -<h2 id="Voir_aussi">Voir aussi</h2> - -<ul> - <li>{{jsxref("Object.prototype.toSource()")}}</li> - <li>{{jsxref("Array.prototype.toString()")}}</li> -</ul> |