diff options
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects/object/tostring')
-rw-r--r-- | files/fr/web/javascript/reference/global_objects/object/tostring/index.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/object/tostring/index.html b/files/fr/web/javascript/reference/global_objects/object/tostring/index.html index 9075aaad0e..e702efa029 100644 --- a/files/fr/web/javascript/reference/global_objects/object/tostring/index.html +++ b/files/fr/web/javascript/reference/global_objects/object/tostring/index.html @@ -16,8 +16,6 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/Object/toString <div>{{EmbedInteractiveExample("pages/js/object-prototype-tostring.html")}}</div> -<p class="hidden">Le code source de cet exemple interactif est disponible dans un dépôt GitHub. Si vous souhaitez contribuez à ces exemples, n'hésitez pas à cloner <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> et à envoyer une <em>pull request</em> !</p> - <h2 id="Syntaxe">Syntaxe</h2> <pre class="syntaxbox"><var>obj</var>.toString()</pre> @@ -74,7 +72,7 @@ monChien = new Chien('Gabby', 'Labrador', 'chocolat', 'femelle'); <pre class="brush: js">Le chien Gabby est un labrador femelle chocolat. </pre> -<h3 id="Utiliser_toString()_pour_détecter_le_type_d'un_objet"><a id="detect" name="detect">Utiliser <code>toString()</code> pour détecter le type d'un objet</a></h3> +<h3 id="Utiliser_toString()_pour_détecter_le_type_d'un_objet">Utiliser <code>toString()</code> pour détecter le type d'un objet</h3> <p><code>toString()</code> peut être utilisée pour tous les objets afin d'obtenir son type. Pour utiliser <code>Object.prototype.toString()</code> avec n'importe quel objet, il sera nécessaire d'appeler {{jsxref("Function.prototype.call()")}} ou {{jsxref("Function.prototype.apply()")}} (pour éviter les versions surchargées).</p> |