é åã®å å 表è¨å ã§ãä¸è¨ã®äºç¨®é¡ã®ã³ã³ãã¼ãã³ãã許ããã¦ãã¾ãã: for...of if for-of ã¤ãã¬ã¼ã·ã§ã³ã¯å¸¸ã«æåã®ã³ã³ãã¼ãã³ãã§ããè¤æ°ã®for-of ã¤ãã¬ã¼ã·ã§ã³ã¯ãã¹ãã¼ãã¡ã³ãã許å¯ããã¦ããå ´åã é åå å ã¯ä»¥åãECMAScript 2016 ã§æ¨æºåãææ¡ããã¦ãã¾ãããããã¯å¥ã®ãã®ã«åºã¥ãã¦æ°ããªé åãæ§æããããã®æã£åãæ©ãæ¹æ³ãæä¾ãã¾ããé åå å ã¯ä¸è¬ã«ãmap() ããã³ filter() ãå¼ã³åºã代ããã¨ãã¦ããããã¯ããã 2 ã¤ãçµåããæ段ã¨ãã¦ç¨ãããã¨ãã§ãã¾ãã 次ã®é åå å ã¯æ°å¤ã®é åãåãè¾¼ãã§ããã®åæ°å¤ã 2 åããå¤ã«ããæ°ããé åãä½æãã¾ãã var numbers = [1, 2, 3, 4]; var doubled = [for (i of numbers) i * 2]; console.log(dou
{{#tags}}- {{label}}
{{/tags}}