{"id":10337,"date":"2018-10-22T09:00:54","date_gmt":"2018-10-22T00:00:54","guid":{"rendered":"https:\/\/www.agent-grow.com\/self20percent\/?p=10337"},"modified":"2018-10-19T09:27:13","modified_gmt":"2018-10-19T00:27:13","slug":"javascript-anti-foreach","status":"publish","type":"post","link":"https:\/\/www.agent-grow.com\/self20percent\/2018\/10\/22\/javascript-anti-foreach\/","title":{"rendered":"JavaScript \u306e \u914d\u5217\u64cd\u4f5c\u3067 reduce, map, filter \u3092\u4f7f\u304a\u3046\uff01"},"content":{"rendered":"<h1>\u8131 for, forEach \uff01<\/h1>\n<p>\u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\u3001\u6c5f\u5d5c\u3067\u3059\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u3001JavaScript \u306e\u914d\u5217\u3001\u3088\u304f\u4f7f\u3044\u307e\u3059\u3088\u306d\uff1f<\/p>\n<p>\u914d\u5217\u3092\u64cd\u4f5c\u3059\u308b\u3068\u304d\u3063\u3066\u3069\u3046\u3057\u3066\u307e\u3059\u304b\uff1f<\/p>\n<p>\u4f8b\u3048\u3070\u7c21\u5358\u306a\u8db3\u3057\u7b97\u306e\u5834\u5408\u3001<br \/>\n\u3053\u3093\u306a\u3093\u3068\u304b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;1, 2, 3];\nvar sum = 0;\n\nfor (var i = 0; i &amp;lt; hoge.length; i++) {\n  sum += hoge&#x5B;i];\n}\n\nconsole.log(sum); \/\/ =&amp;gt; 6\n<\/pre>\n<p>\u3053\u3093\u306a\u3093\u3068\u304b\uff1f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;1, 2, 3];\nvar sum = 0;\n\nhoge.forEach(function(v) {\n  sum += v;\n});\n\nconsole.log(sum); \/\/ =&amp;gt; 6\n<\/pre>\n<p>\u3082\u3061\u308d\u3093\u3001\u3053\u308c\u3082\u6b63\u89e3\u3067\u3059\u3088\u306d\u3002<br \/>\n\u904e\u7a0b\u304c\u3069\u3046\u3067\u3042\u308c\u3001\u76ee\u7684\u304c\u9054\u6210\u3067\u304d\u308c\u3070\u3044\u3044\u3067\u3059\u3057\u3002<\/p>\n<p>\u3067\u3082\u3001\u4eca\u306f\u3082\u3063\u3068\u3044\u3044\u66f8\u304d\u65b9\u3082\u3042\u308b\u3093\u3067\u3059\uff01<\/p>\n<h1>JavaScript \u306e\u914d\u5217\u3067\u4f7f\u3048\u308b\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9\u305f\u3061<\/h1>\n<p>JavaScript \u306e\u914d\u5217\u306b\u5bfe\u3057\u3066\u3001 for, forEach() \u306e\u4ee3\u308f\u308a\u306b\u4f7f\u3048\u308b<br \/>\n\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<h2>reduce<\/h2>\n<p>reduce \u306f\u5148\u307b\u3069\u306e\u8db3\u3057\u7b97\u306e\u3088\u3046\u306b\u3001\u914d\u5217\u304b\u3089\u3042\u308b\u4e00\u3064\u306e\u5024\u3092\u5c0e\u304d\u51fa\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<br \/>\n\u5148\u7a0b\u306e\u8db3\u3057\u7b97\u3092\u66f8\u304d\u63db\u3048\u3066\u307f\u308b\u3068\u2026<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;1, 2, 3];\n\nvar sum = hoge.reduce((prev, current) =&amp;gt; prev += current, 0);\n\nconsole.log(sum); \/\/ =&amp;gt; 6\n<\/pre>\n<p>\u5b9f\u8cea\u4e00\u884c\u3067\u66f8\u3051\u307e\u3057\u305f\u306d\uff01<br \/>\n\u306a\u305c\u3053\u3046\u66f8\u3051\u308b\u306e\u304b\u304c\u5206\u304b\u3089\u306a\u3044\u3068\u610f\u5473\u4e0d\u660e\u3067\u6c17\u6301\u3061\u60aa\u3044\u611f\u3058\u3067\u3059\u304c\u3001<br \/>\n\u6163\u308c\u308b\u3068\u4e00\u77ac\u3067\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u6163\u308c\u3066\u3044\u306a\u3044\u3068\u3055\u3059\u304c\u306b\u8003\u3048\u308b\u3053\u3068\u304c\u591a\u3059\u304e\u308b\u306e\u3067\u3061\u3087\u3063\u3068\u898b\u6163\u308c\u305f\u5f62\u306b\u5909\u5f62\u3055\u305b\u3066\u2026<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;1, 2, 3];\n\nfunction calc(prev, current) {\n  return prev += current;\n}\n\nvar sum = hoge.reduce(calc, 0);\n\nconsole.log(sum); \/\/ =&amp;gt; 6\n<\/pre>\n<p>\u3053\u308c\u3067\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n<ul>\n<li>reduce \u306f <code>\u914d\u5217.reduce(\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570, \u521d\u671f\u5024)<\/code> \u306e\u5f62\u3067\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u5834\u5408\u306f\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u304c calc, \u521d\u671f\u5024\u304c 0 \u3067\u3059\u3002<\/li>\n<li>reduce \u306f\u914d\u5217\u306e\u5148\u982d\u304b\u3089\u4e00\u3064\u305a\u3064\u5024\u3092\u53d6\u308a\u51fa\u3057\u3066\u8a08\u7b97\u3057\u3066\u3001\u53d6\u308a\u51fa\u3057\u3066\u8a08\u7b97\u3057\u3066\u3001\u3092\u7e70\u308a\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9\u3067\u3059<br \/>\n(\u3061\u306a\u307f\u306b\u3053\u306e\u5f8c\u3054\u7d39\u4ecb\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3082\u3059\u3079\u3066\u3001\u914d\u5217\u306e\u5148\u982d\u304b\u3089\u4e00\u3064\u305a\u3064\u53d6\u308a\u51fa\u3057\u3066\u3001\u51e6\u7406\u3057\u3066\u3001\u3092\u7e70\u308a\u8fd4\u3059\u6319\u52d5\u306b\u306a\u308a\u307e\u3059\uff09<\/li>\n<li>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u5f15\u6570\u306b\u306f (\u524d\u56de\u306e\u7d50\u679c, \u4eca\u56de\u53d6\u308a\u51fa\u3057\u305f\u5024) \u306e\u5f62\u3067\u5024\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059<\/li>\n<\/ul>\n<p>\u5b9f\u969b\u306e\u51e6\u7406\u306e\u6d41\u308c\u306f<\/p>\n<ul>\n<li>\u307e\u305a\u6700\u521d\u306b\u3001\u914d\u5217\u306b\u306f 1 \u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001 \u300c\u4eca\u56de\u53d6\u308a\u51fa\u3057\u305f\u5024\u300d\u304c 1\u3001\u300c\u524d\u56de\u306e\u7d50\u679c\u300d\u306f\u7121\u3044\u306e\u3067\uff08\u521d\u56de\u306a\u306e\u3067\uff09\u5225\u9014\u8a2d\u5b9a\u3057\u305f\u521d\u671f\u5024 0 \u304c \u524d\u56de\u306e\u7d50\u679c\u306b\u5165\u308a\u307e\u3059<\/li>\n<li>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3068 <code>prev += current<\/code>\u3001\u3059\u306a\u308f\u3061 \u300c\u4eca\u56de\u53d6\u308a\u51fa\u3057\u305f\u5024\u300d+= \u300c\u524d\u56de\u306e\u7d50\u679c\u300d \u306a\u306e\u3067\u3001 1 + 0 \u3067 1 \u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>\u914d\u5217\u4e00\u3064\u76ee\u306e\u5024\u306b\u3064\u3044\u3066 reduce \u3057\u305f\u7d50\u679c <code>1<\/code> \u3068\u3044\u3046\u7d50\u679c\u3092\u5f97\u307e\u3057\u305f<br \/>\n(\u3053\u3053\u307e\u3067\u3067\u30ef\u30f3\u30bb\u30c3\u30c8\u3067\u3059)<\/li>\n<li>\u914d\u5217\u4e00\u3064\u76ee\u306e\u5024\u306b\u3064\u3044\u3066\u8a08\u7b97\u7d42\u4e86\u3057\u305f\u306e\u3067\u3001\u4e8c\u3064\u76ee\u306e\u5024\u306e\u5024\u3092\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002 2 \u3067\u3059\u306d<\/li>\n<li>\u4eca\u56de\u53d6\u308a\u51fa\u3057\u5024\u306f 2, \u524d\u56de\u306e\u7d50\u679c\u304c 1 \u306a\u306e\u3067 2 + 1 \u3067 3 \u304c\u8fd4\u3055\u308c\u307e\u3059<\/li>\n<li>\u3082\u3046\u4e00\u5ea6\u3001\u6b21\u306e\u5024\u3092\u914d\u5217\u304b\u3089\u53d6\u308a\u51fa\u3059\u3068\u4eca\u5ea6\u306f 3 \u3067\u3059<\/li>\n<li>\u524d\u56de\u306e\u7d50\u679c\u304c 3, \u4eca\u56de\u306e\u5024\u304c 3 \u306a\u306e\u3067 3 + 3 \u3067 6 \u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>\u6b21\u306e\u5024\u3092\u914d\u5217\u304b\u3089\u53d6\u308a\u51fa\u305d\u3046\u3068\u3057\u307e\u3059\u304c\u3001\u3082\u3046\u5024\u304c\u306a\u3044\u306e\u3067\u7d42\u4e86\u3067\u3059<br \/>\n\u6700\u7d42\u7d50\u679c\u306e 6 \u3092\u8fd4\u3057\u307e\u3059<br \/>\n\u3053\u308c\u304c\u3000sum \u5909\u6570\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u3061\u3087\u3063\u3068\u9577\u3044\u3067\u3059\u304c\u3001\u3053\u3093\u306a\u611f\u3058\u306e\u51e6\u7406\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4e00\u8a00\u3067\u8a00\u3048\u3070\u3001\u5358\u7d14\u306b\u4e00\u3064\u305a\u3064\u53d6\u308a\u51fa\u3057\u3066\u9806\u756a\u306b\u8a08\u7b97\u3057\u3066\u3044\u304f\u3060\u3051\u3001\u3067\u3059\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u8db3\u3057\u7b97\u306b\u4f7f\u3044\u307e\u3057\u305f\u304c\u3001\u540d\u7c3f\u30ea\u30b9\u30c8\u7b49\u306b\u4f7f\u3063\u3066<br \/>\n\u540d\u524d\u306e\u4e00\u89a7\u3092\u4e00\u3064\u306e\u6587\u5b57\u5217\u306b\u307e\u3068\u3081\u308b\u307f\u305f\u3044\u306a\u4f7f\u3044\u65b9\u3082\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<h2>map<\/h2>\n<p>map \u306f\u914d\u5217\u306e\u305d\u308c\u305e\u308c\u306e\u5024\u306b\u5bfe\u3057\u3066\u4f55\u3089\u304b\u306e\u64cd\u4f5c\u3092\u884c\u3044\u3001\u65b0\u3057\u3044\u914d\u5217\u3092\u4f5c\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<br \/>\n\u914d\u5217\u306e\u4e2d\u306e\u5024\u3092\u305d\u308c\u305e\u308c 3 \u500d\u3057\u305f\u914d\u5217\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;1, 2, 3];\n\nvar result = hoge.map(x =&amp;gt; x * 3);\n\nconsole.log(result); \/\/ =&amp;gt; &#x5B;3, 6, 9]\n<\/pre>\n<p>\u9a5a\u304d\u306e\u77ed\u3055\uff01<\/p>\n<p>\u3053\u308c\u3082\u5c11\u3057\u5909\u5f62\u3057\u307e\u3059\u306d\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;1, 2, 3];\n\nfunction calc(value) {\n  return value * 3;\n}\n\nvar result = hoge.map(calc);\n\nconsole.log(result); \/\/ =&amp;gt; &#x5B;3, 6, 9]\n<\/pre>\n<p>\u3053\u308c\u306f reduce \u3088\u308a\u3082\u3061\u3087\u3063\u3068\u7c21\u5358\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u914d\u5217\u304b\u3089\u4e00\u3064\u76ee\u306e\u5024\u3092\u53d6\u308a\u51fa\u3057\u3066\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u7b2c\u4e00\u5f15\u6570\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059<br \/>\n\u3053\u306e\u5834\u5408 value \u306b 1 \u304c\u306f\u3044\u308a\u307e\u3059\u306d<\/li>\n<li>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u4e2d\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n<code>value * 3<\/code> \u306a\u306e\u3067 <code>1 * 3<\/code> \u3067 3 \u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/li>\n<li>\u5e30\u3063\u3066\u304d\u305f\u5024 3 \u3092\u5225\u306e\u914d\u5217\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059\uff08\u5225\u306e\u914d\u5217\u306f\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u7279\u306b\u4f5c\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001 map \u304c\u3053\u3063\u305d\u308a\u65b0\u3057\u304f\u4f5c\u308a\u307e\u3059\uff09<\/li>\n<li>\u6b21\u306e\u5024 2 \u3092\u53d6\u308a\u51fa\u3057\u307e\u3059\u2026<\/li>\n<\/ul>\n<p>\u3068\u9806\u3005\u306b\u5b9f\u65bd\u3057\u3066\u3044\u3063\u3066\u3001\u6700\u7d42\u7684\u306b\u51fa\u6765\u4e0a\u304c\u3063\u305f\u914d\u5217\u3092\u8fd4\u3059\u3001\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3059\u306d\u3002<\/p>\n<p>DB \u3078\u306e\u5024\u306e\u683c\u7d0d\u524d\u306a\u3069\u306b\u914d\u5217\u306e\u4e2d\u8eab\u3092\u5909\u63db\u3057\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u306f\u3088\u304f\u3042\u308b\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304f\u3068\u7d50\u69cb\u4fbf\u5229\u306a\u5b58\u5728\u3067\u3059\u306d\u3002<\/p>\n<h2>filter<\/h2>\n<p>\u914d\u5217\u306e\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9\u306f\u305f\u304f\u3055\u3093\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u3053\u3053\u3067\u306f\u3082\u3046\u4e00\u3064\u3060\u3051\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>filter \u306f\u914d\u5217\u306e\u4e2d\u304b\u3089\u6761\u4ef6\u306b\u5408\u3046\u3082\u306e\u3060\u3051\u3092\u62bd\u51fa\u3057\u3066\u65b0\u3057\u3044\u914d\u5217\u306b\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u5076\u6570\u306e\u6570\u3060\u3051\u3092\u62bd\u51fa\u3059\u308b\u306b\u306f\u2026<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;3, 6, 7, 10, 15];\n\nvar sum = hoge.filter(x =&amp;gt; x % 2 === 0);\n\nconsole.log(sum); \/\/ =&amp;gt; &#x5B;6, 10]\n<\/pre>\n<p>\u3053\u308c\u3082\u3061\u3087\u3063\u3068\u5909\u63db\u3059\u308b\u3068\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar hoge = &#x5B;3, 6, 7, 10, 15];\n\nfunction check(value) {\n  var rem = value % 2;\n  var isEven = rem === 0;\n  return isEven;\n}\n\nvar result = hoge.filter(check);\n\nconsole.log(result); \/\/ =&amp;gt; &#x5B;6, 10]\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u4e8c\u3064\u898b\u305f\u306e\u3067\u5927\u5206\u6163\u308c\u3066\u304d\u305f\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u4e2d\u3067 true, false \u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u30e1\u30bd\u30c3\u30c9\u540c\u69d8\u5024\u3092\u4e00\u3064\u53d6\u308a\u51fa\u3057\u3066\u3001\u8a08\u7b97\u3092\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>rem \u306b\u306f 2 \u3067\u5272\u3063\u305f\u4f59\u308a\u304c\u5165\u308a\u307e\u3059<br \/>\n3 (\u5947\u6570) \u306a\u3089 1, 6 (\u5076\u6570) \u306a\u3089 0 \u3067\u3059\u306d<\/li>\n<li>isEven \u306b\u306f true \u307e\u305f\u306f false \u304c\u5165\u308a\u307e\u3059<br \/>\n0 \u306a\u3089 true \u306a\u306e\u3067\u3001\u5076\u6570\u306a\u3089 true \u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d<\/li>\n<li>\u6700\u5f8c\u306b isEven \u3092\u8fd4\u3057\u307e\u3059<\/li>\n<\/ul>\n<p>\u3059\u308b\u3068\u3001 filter \u306f true \u304c\u8fd4\u3055\u308c\u305f\u5024\u3060\u3051\u3092\u914d\u5217\u306b\u66f8\u304d\u51fa\u3057\u3001\u6700\u5f8c\u306b\u914d\u5217\u3092\u8fd4\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3059\u306d\u3002<\/p>\n<h1>\u306a\u3093\u3067 for, forEach \u3092\u66f8\u304d\u305f\u304f\u306a\u3044\u306e\u304b\uff1f<\/h1>\n<p>\u7686\u3055\u3093\u306e\u4e2d\u306b\u306f\u3001\u300c\u306a\u3093\u3067\u305d\u3053\u307e\u3067\u3057\u3066 for, forEach \u3092\u524a\u308b\u306e\uff1f\u5225\u306b\u305d\u306e\u307e\u307e\u3067\u826f\u304f\u306a\u3044\uff1f\u300d\u3068\u601d\u3063\u3066\u3044\u3089\u3063\u3057\u3083\u308b\u65b9\u3082\u304a\u3089\u308c\u308b\u3067\u3057\u3087\u3046\u3002<br \/>\n\u5b9f\u306f\u79c1\u3082\u524d\u306f\u305d\u3046\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u4e00\u5ea6\u7fd2\u5f97\u3057\u3066\u4f7f\u3063\u3066\u307f\u308b\u3068\u5206\u304b\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n<ul>\n<li>\u66f8\u304f\u3068\u304d\u306b\u30e9\u30af (\u5225\u306b\u5909\u6570\u3092\u7528\u610f\u3057\u305f\u308a\u3068\u304b\u3057\u306a\u304f\u3066\u826f\u3044\u3057\u3001\u77ed\u304f\u66f8\u3051\u308b\u3053\u3068\u3092\u304c\u591a\u3044)<\/li>\n<li>\u8aad\u3080\u3068\u304d\u306b\u30e9\u30af\uff08for \u3060\u3051\u3067\u306f\u305f\u3060\u7e70\u308a\u8fd4\u3059\u3001\u3068\u3044\u3046\u4e8b\u3057\u304b\u5206\u304b\u3089\u306a\u3044\u304c\u3001 map \u306a\u3089\u914d\u5217\u3092\u5909\u63db\u3092\u3057\u305f\u3044\u3068\u3044\u3046\u610f\u56f3\u304c\u3059\u3050\u306b\u308f\u304b\u308b\uff09<\/li>\n<\/ul>\n<p>\u3068\u3001\u30e9\u30af\u30e9\u30af\u306a\u3093\u3067\u3059\u306d\uff01<\/p>\n<p>\u4eca\u56de\u306f JavaScript \u3092\u4f8b\u306b\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u3046\u3044\u3063\u305f\u30e9\u30e0\u30c0\u5f0f\u7b49\u306f Java \u3084 PHP \u306a\u3069\u3001\u307b\u304b\u306b\u3082\u4f7f\u3048\u308b\u8a00\u8a9e\u306f\u591a\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u307e\u3067\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\uff01\u3068\u3044\u3046\u65b9\u306f\u3053\u308c\u3092\u6a5f\u306b\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8131 for, forEach \uff01 \u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\u3001\u6c5f\u5d5c\u3067\u3059\u3002 \u307f\u306a\u3055\u3093\u3001JavaScript \u306e\u914d\u5217\u3001\u3088\u304f\u4f7f\u3044\u307e\u3059\u3088\u306d\uff1f \u914d\u5217\u3092\u64cd\u4f5c\u3059\u308b\u3068\u304d\u3063\u3066\u3069\u3046\u3057\u3066\u307e\u3059\u304b\uff1f \u4f8b\u3048\u3070\u7c21\u5358\u306a\u8db3\u3057\u7b97\u306e\u5834\u5408\u3001 \u3053\u3093\u306a\u3093\u3068\u304b var hog [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":10452,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[45],"class_list":["post-10337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-javascript"],"jetpack_featured_media_url":"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/10\/850c7612116999490846136e772ab7fd-1.png","jetpack_shortlink":"https:\/\/wp.me\/p7Bq4F-2GJ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/10337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/comments?post=10337"}],"version-history":[{"count":0,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/10337\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media\/10452"}],"wp:attachment":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media?parent=10337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/categories?post=10337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/tags?post=10337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}