{"published":"2019-02-01 20:24:06","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kwbtblog/20190413/20190413070732.png","blog_url":"https://www.ekwbtblog.com/","title":"Understanding JavaScript's Array.reduce() a little more properly","description":"Array.reduce() in JavaScript is a bit quirky, and I had avoided it until now, but I put it together just to understand it. Array.reduce() is, in a nutshell, a function that collects the elements of an array and returns a single output. First, the basics const arr = [\"A\", \"B\", \"C\"]; const ret = arr.r\u2026","type":"rich","version":"1.0","width":"100%","author_name":"kwbtblog","author_url":"https://blog.hatena.ne.jp/kwbtblog/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.ekwbtblog.com%2Fentry%2F2019%2F02%2F01%2F202406\" title=\"Understanding JavaScript&#39;s Array.reduce() a little more properly - Welcome to new things\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["JavaScript"],"blog_title":"Welcome to new things","url":"https://www.ekwbtblog.com/entry/2019/02/01/202406","height":"190","provider_url":"https://hatena.blog"}