{"json_modified": "2016-10-11T10:59:06.340453", "uuid": "d3ee5fb0-c3b9-4bbd-8166-980ff99b51ef", "title": "Symbol.toPrimitive", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Symbol/toPrimitive", "tags": ["R\u00e9f\u00e9rence", "ECMAScript6", "Symbol", "Propri\u00e9t\u00e9", "JavaScript"], "translations": [{"uuid": "caf3bd5f-bc78-4392-bdf2-c9547096af79", "title": "Symbol.toPrimitive", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive", "tags": ["Property", "Symbol", "ECMAScript6", "JavaScript"], "summary": "The Symbol.toPrimitive
is a\u00a0symbol that\u00a0specifies a function valued property that is called to convert an object to a corresponding primitive value.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-10-11T09:14:04", "review_tags": []}, {"uuid": "6b292ebe-b2b3-4eef-bbc6-f89e9f9a75a0", "title": "Symbol.toPrimitive", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive", "tags": ["Property", "Symbol", "ECMAScript6", "JavaScript"], "summary": "Symbol.toPrimitive
\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5bfe\u5fdc\u3059\u308b\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u5024\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u3001\u95a2\u6570\u306e\u5024\u3092\u6301\u3064\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6307\u5b9a\u3059\u308b symbol \u3067\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-08-19T03:57:57", "review_tags": []}], "modified": "2016-10-11T10:59:06", "label": "Symbol.toPrimitive", "localization_tags": [], "locale": "fr", "id": 163697, "last_edit": "2016-10-11T10:59:00", "summary": "Lorsqu'on convertit un objet en une valeur primitive et que l'objet poss\u00e8de une propri\u00e9t\u00e9 Symbol.toPrimitive
dont la valeur est une fonction, la fonction est appel\u00e9e avec une cha\u00eene de caract\u00e8re (hint
) qui d\u00e9finit le type qu'on privil\u00e9gie pour la valeur primitive. L'argument hint
peut prendre l'une des valeurs suivantes : \"number\"
, \"string\"
ou \"default\"
.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Description", "title": "Description"}, {"id": "Exemples", "title": "Exemples"}, {"id": "Sp\u00e9cifications", "title": "Sp\u00e9cifications"}, {"id": "Compatibilit\u00e9_des_navigateurs", "title": "Compatibilit\u00e9 des navigateurs"}, {"id": "Voir_aussi", "title": "Voir aussi"}], "slug": "Web/JavaScript/Reference/Objets_globaux/Symbol/toPrimitive", "review_tags": []}