{"author_name":"kikiki-kiki","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2020%2F04%2F27%2F083000\" title=\"JavaScript \u518d\u5e30\u95a2\u6570\u3067\u3082\u30ab\u30ea\u30fc\u5316\u3057\u305f\u3044 - \u304b\u3082\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"JavaScript \u518d\u5e30\u95a2\u6570\u3067\u3082\u30ab\u30ea\u30fc\u5316\u3057\u305f\u3044","author_url":"https://blog.hatena.ne.jp/kikiki-kiki/","blog_url":"https://chaika.hatenablog.com/","published":"2020-04-27 08:30:00","width":"100%","categories":["Functional Programming","JavaScript"],"blog_title":"\u304b\u3082\u30e1\u30e2","image_url":"https://m.media-amazon.com/images/I/4133N79CZQL._SL160_.jpg","description":"\u518d\u5e30\u5185\u3067\u4f7f\u3046\u5024\u3092\u5148\u306b\u751f\u6210\u3057\u3066\u4f7f\u3044\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u518d\u5e30\u95a2\u6570\u3092\u30ab\u30ea\u30fc\u5316 \u3057\u305f\u3044\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u306e\u3067\u30e1\u30e2\u3002 \ud83c\udf5b\u30ab\u30ea\u30fc\u5316 (currying)\u3068\u308e\uff1f 1. \u30ab\u30ea\u30fc\u5316\u3057\u305f callback \u95a2\u6570\u3092\u518d\u5e30\u95a2\u6570\u306b\u6e21\u3059\u30d1\u30bf\u30fc\u30f3 const curry = (func, validFunc) => { return (arg, callback) => { if ( !validFunc(arg) ) { return arg; } const res = func(arg); callback(res, callback); } }; const recursiveFunc = curry(fun, valid\u2026","height":"190","version":"1.0","url":"https://chaika.hatenablog.com/entry/2020/04/27/083000"}