{"author_name":"panda_noir","published":"2026-01-11 12:08:35","description":"forEach\u3063\u3066\u8981\u3089\u306a\u304f\u306a\u3044?\u3068\u601d\u3063\u3066\u305f\u3093\u3060\u3051\u3069\u4f7f\u3044\u9053\u3042\u308b\u306a\u3068\u6c17\u3065\u3044\u305f\u306e\u3067\u7d39\u4ecb nullable\u306a\u30ea\u30b9\u30c8\u306b\u5bfe\u3057\u3066\u30eb\u30fc\u30d7\u3057\u305f\u3044\u6642\u306b\u4f7f\u3048\u308b nullableList?.forEach(item => {}) // forEach\u304c3\u3064\u306e\u4e2d\u3067\u4e00\u756a\u30b7\u30f3\u30d7\u30eb // \u3082\u3057for-of\u3067\u66f8\u304f\u3068 if(nullableList != null) for (const item of nullableList) {} // \u3042\u308b\u3044\u306f\u3053\u3046\u3082\u66f8\u3051\u308b for (const item of nullableList ?? []) {} \u3053\u306e\u5834\u5408\u306ffor-of\u3060\u3068\u3084\u3084\u307e\u3069\u308d\u3063\u3053\u3057\u3044\u3002forEach\u306e\u65b9\u304c\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3063\u304d\u2026","provider_url":"https://hatena.blog","height":"190","image_url":null,"blog_title":"Panda Noir","type":"rich","version":"1.0","provider_name":"Hatena Blog","categories":["JavaScript"],"author_url":"https://blog.hatena.ne.jp/panda_noir/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pandanoir.info%2Fentry%2F2026%2F01%2F11%2F120835\" title=\"forEach\u306e\u4f7f\u3044\u65b91\u9078 - Panda Noir\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://www.pandanoir.info/entry/2026/01/11/120835","blog_url":"https://www.pandanoir.info/","title":"forEach\u306e\u4f7f\u3044\u65b91\u9078"}