{"json_modified": "2016-10-17T19:50:01.155836", "uuid": "014f1147-8514-4d36-9ee3-40f932d0b4ed", "title": "Set.prototype.entries()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Set/entries", "tags": [], "translations": [{"uuid": "f50c62e7-9a53-4ab5-865a-929242da9850", "title": "Set.prototype.entries()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries", "tags": ["Prototype", "JavaScript", "ECMAScript6", "set", "Iterator", "Method"], "summary": "The entries()
method returns a new Iterator
object that contains an array of [value, value]
for each element in the Set
object, in insertion order. For Set
objects there is no key
like in Map
objects. However, to keep the API similar to the Map
object, each entry has the same value for its key and value here, so that an array [value, value]
is returned.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-08-10T04:29:04", "review_tags": []}, {"uuid": "34d91ec0-a949-4fb9-8edb-eb6652b3d8a0", "title": "Set.prototype.entries()", "url": "/ca/docs/Web/JavaScript/Referencia/Objectes_globals/Set/entries", "tags": [], "summary": "El m\u00e8tode entries()
retorna un nou objecte Iterator
que cont\u00e9 un array de [valor, valor]
per a cada element emmagatzemat dins l'objecte Set
, ordenats per ordre d'inserci\u00f3. Els elements de l'objecte Set
no disposen de claus, a difer\u00e8ncia dels objectes Map
. Tot i aix\u00ed, per a oferir una API similar a la de l'objecte Map
cada entrada t\u00e9 el mateix valor tant com per a la clau com per al valor. \u00c9s per aix\u00f2 que es retorna un array [valor, valor]
.", "localization_tags": [], "locale": "ca", "last_edit": "2015-09-23T07:43:03", "review_tags": []}, {"uuid": "2174d6b0-51d6-42cd-bad0-ef5bd7858011", "title": "Set.prototype.entries()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Set/entries", "tags": ["R\u00e9f\u00e9rence", "Prototype", "JavaScript", "ECMAScript6", "set", "Iterator", "M\u00e9thode"], "summary": "La m\u00e9thode entries()
renvoie un nouvel objet Iterator
qui contient un tableau compos\u00e9 de [valeur, valeur]
pour chaque \u00e9l\u00e9ment de l'objet Set
, dans leur ordre d'insertion. En raison de leur structure, les objets Set
n'ont pas de cl\u00e9 (key
), \u00e0 la diff\u00e9rence des objets Map
. Pour garder une structure et une API sembables \u00e0 celle d'un objet Map
, chaque entr\u00e9e (entry) aura la m\u00eame valeur pour la cl\u00e9 (key) et pour la valeur (value), c'est pourquoi un tableau de [valeur, valeur]
est renvoy\u00e9.", "localization_tags": [], "locale": "fr", "last_edit": "2016-08-10T11:58:28", "review_tags": []}, {"uuid": "9e346b8b-6769-46f9-ac09-9fbf385dee6f", "title": "Set.prototype.entries()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Set/entries", "tags": ["Experimental", "Prototype", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "set", "Iterator", "Method"], "summary": "Set
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5404\u8981\u7d20\u306b\u633f\u5165\u9806\u306b[value, value]
\u306e\u914d\u5217\u3092\u542b\u3080\u65b0\u3057\u3044Iterator
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002Set
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u3001Map
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3088\u3046\u306akey
\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001Map
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u4f3c\u305fAPI\u3092\u3082\u3064\u305f\u3081\u306b\u3001\u5404entry\u306fkey\u3068value\u306b\u5bfe\u3057\u3066\u540c\u3058\u5024\u3092\u6301\u3061\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u914d\u5217[value, value]
\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-06-21T10:16:14", "review_tags": ["editorial"]}, {"uuid": "6d240dbe-d0e8-4392-b99c-afcea2ceac6a", "title": "Set.prototype.entries()", "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Set/entries", "tags": [], "summary": "O m\u00e9todo entries()
\u00a0retorna um novo objeto Iterador (Iterator
) que cont\u00e9m um array de [valor, valor] para cada elemento de um objeto Set
em ordem de inser\u00e7\u00e3o. Os objetos Set
n\u00e3o possuem\u00a0chaves (key)\u00a0
como objetos do tipo Map
. Entretanto, para manter a API similar a objetos Map
, cada entrada (entry) tem o mesmo valor para sua chave (key
) e valor (value
), ent\u00e3o uma matriz array [valor, valor]
\u00e9 retornado.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2016-06-15T13:02:41", "review_tags": []}], "modified": "2016-10-17T19:50:00", "label": "Set.prototype.entries()", "localization_tags": ["inprogress"], "locale": "zh-CN", "id": 196635, "last_edit": "2016-10-17T19:49:55", "summary": "entries() \u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 Iterator\u00a0\u5bf9\u8c61 \uff0c\u8fd9\u4e2a\u5bf9\u8c61\u7684\u5143\u7d20\u662f\u7c7b\u4f3c [value, value] \u5f62\u5f0f\u7684\u6570\u7ec4\uff0cvalue \u662f\u96c6\u5408\u5bf9\u8c61\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\uff0cIterator \u5bf9\u8c61\u5143\u7d20\u7684\u987a\u5e8f\u5373\u96c6\u5408\u5bf9\u8c61\u4e2d\u5143\u7d20\u63d2\u5165\u7684\u987a\u5e8f\u3002\u7531\u4e8e\u96c6\u5408\u5bf9\u8c61\u4e0d\u50cf Map \u5bf9\u8c61\u90a3\u6837\u62e5\u6709 key\uff0c\u7136\u800c\uff0c\u4e3a\u4e86\u4e0e Map \u5bf9\u8c61\u7684 API \u5f62\u5f0f\u4fdd\u6301\u4e00\u81f4\uff0c\u6545\u4f7f\u5f97\u6bcf\u4e00\u4e2a entry \u7684 key \u548c value \u90fd\u62e5\u6709\u76f8\u540c\u7684\u503c\uff0c\u56e0\u800c\u6700\u7ec8\u8fd4\u56de\u4e00\u4e2a [value, value] \u5f62\u5f0f\u7684\u6570\u7ec4\u3002", "sections": [{"id": "Quick_Links", "title": null}, {"id": "\u8bed\u6cd5", "title": "\u8bed\u6cd5"}, {"id": "\u8fd4\u56de\u503c", "title": "\u8fd4\u56de\u503c"}, {"id": "\u793a\u4f8b", "title": "\u793a\u4f8b"}, {"id": "\u4f7f\u7528_entries()", "title": "\u4f7f\u7528\u00a0"}, {"id": "\u89c4\u8303", "title": "\u89c4\u8303"}, {"id": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u00a0"}, {"id": "\u76f8\u5173\u94fe\u63a5", "title": "\u76f8\u5173\u94fe\u63a5"}], "slug": "Web/JavaScript/Reference/Global_Objects/Set/entries", "review_tags": []}