{"json_modified": "2015-11-14T05:13:41.530640", "slug": "Web/JavaScript/Referencia/Objectes_globals/Array/Reduce", "tags": [], "locale": "ca", "title": "Array.prototype.reduce()", "translations": [{"title": "Array.prototype.reduce()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce", "tags": ["ECMAScript5", "Array", "JavaScript 1.8", "Array methods", "JavaScript"], "summary": "\u96a3\u308a\u5408\u3046 2 \u3064\u306e\u914d\u5217\u8981\u7d20\u306b\u5bfe\u3057\u3066\uff08\u5de6\u304b\u3089\u53f3\u3078\uff09\u540c\u6642\u306b\u95a2\u6570\u3092\u9069\u7528\u3057\u3001\u5358\u4e00\u306e\u5024\u306b\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-12T11:34:47", "review_tags": []}, {"title": "Array.prototype.reduce()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce", "tags": ["ECMAScript5", "prototype", "Array", "Prototype", "JavaScript", "Method"], "summary": "The reduce()
method applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-11-01T16:11:25", "review_tags": []}, {"title": "Array.prototype.reduce()", "url": "/es/docs/Web/JavaScript/Referencia/Objetos_globales/Array/reduce", "tags": ["ECMAScript5", "JavaScript 1.8", "Array", "Prototype", "JavaScript", "Method"], "summary": "Aplica una funci\u00f3n simult\u00e1neamente a dos valores de un array (de izquierda a derecha) para reducirlo a un \u00fanico valor.", "localization_tags": [], "locale": "es", "last_edit": "2014-11-10T20:44:08", "review_tags": []}, {"title": "Array.prototype.reduce()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce", "tags": ["\u65b9\u6cd5", "\u539f\u578b", "\u6570\u7ec4"], "summary": "reduce()
\u00a0\u65b9\u6cd5\u63a5\u6536\u4e00\u4e2a\u51fd\u6570\u4f5c\u4e3a\u7d2f\u52a0\u5668\uff08accumulator\uff09\uff0c\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u503c\uff08\u4ece\u5de6\u5230\u53f3\uff09\u5f00\u59cb\u7f29\u51cf\uff0c\u6700\u7ec8\u4e3a\u4e00\u4e2a\u503c\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-08-15T16:22:27", "review_tags": []}, {"title": "Array.prototype.reduce()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array/reduce", "tags": ["ECMAScript5", "prototype", "polyfill", "Array", "Prototype", "JavaScript", "Method"], "summary": "reduce
\u00a0ex\u00e9cute la fonction callback
une fois pour chaque \u00e9l\u00e9ment pr\u00e9sent dans le tableau et ignore les \u00e9l\u00e9ments vides du tableau. La fonction callback
utilise quatre arguments :", "localization_tags": [], "locale": "fr", "last_edit": "2015-11-03T10:40:10", "review_tags": []}, {"title": "Array.prototype.reduce()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce", "tags": ["ECMAScript5", "polyfill", "Reference", "JavaScript 1.8", "R\u00e9f\u00e9rence", "Array", "Prototype", "JavaScript", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 reduce()
\u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043a \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0443 \u0438 \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 (\u0441\u043b\u0435\u0432\u0430-\u043d\u0430\u043f\u0440\u0430\u0432\u043e), \u0441\u0432\u043e\u0434\u044f \u0435\u0433\u043e \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e.", "localization_tags": [], "locale": "ru", "last_edit": "2015-01-26T22:26:12", "review_tags": []}, {"title": "Array.prototype.reduce()", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Array/Reduce", "tags": [], "summary": "The reduce()
method applies a function against an accumulator and each value of the array (from left-to-right) has to reduce it to a single value.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2015-06-08T19:06:12", "review_tags": []}, {"title": "Array.prototype.reduce()", "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce", "tags": [], "summary": "O m\u00e9todo reduce() aplica uma fun\u00e7\u00e3o sobre um acumulador e\u00a0cada valor do array (da esquerda para direita), deve\u00a0reduz\u00ed-lo a\u00a0um \u00fanico valor.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2015-07-26T19:19:50", "review_tags": []}], "modified": "2015-11-14T05:13:39", "label": "Array.prototype.reduce()", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Objectes_globals/Array/Reduce", "last_edit": "2015-11-14T05:13:35", "summary": "El m\u00e8tode reduce()
aplica una funci\u00f3 sobre un acumulador i cada valor de l'array (de esquerra a dreta) perr a reduir-lo a un sol valor.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "sintaxi", "title": "sintaxi"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Descripci\u00f3", "title": "Descripci\u00f3"}, {"id": "Exemples", "title": "Exemples"}, {"id": "Sumar_tots_els_valors_d'un_array", "title": "Sumar tots els valors d'un array"}, {"id": "Aplanar_un_array_d'arrays", "title": null}, {"id": "Polyfill", "title": "Polyfill"}, {"id": "Especificacions", "title": "Especificacions"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "Vegeu_tamb\u00e9", "title": "Vegeu tamb\u00e9"}], "id": 166123, "review_tags": []}