JavaScript ã®å¥å¦ãªè¨æ³ æè¿ã® JavaScript (Firefox 3.5 以é) ã§ã¯, è²ã ã¨å¥å¦ãªè¨æ³ãå¯è½ã¨ãªã£ã¦ãã. ä¾ãã°, 次ã®ãããªãã®. let obj = {a: 10, b: 20}; let {a: a, b: b} = obj; // åå²ä»£å ¥ã®ä¸ç¨® let {a, b} = obj; // ä¸ã®çç¥è¨æ³ let [a, b] = [1, 2]; ã¨ãã£ãåå²ä»£å ¥ããåç¥ã®æ¹ã¯å¤ãã®ã§ã¯ãªããã¨æã. ä¸è¨ã®è¨æ³ã¯ããã®ä¸ç¨®ã¨ããã¦ãã¦, ãªãã¸ã§ã¯ãããç¹å®ããããã£ã®å¤ãæã£ã¦ããã¨ãã«æç¨. ã³ã¼ãã´ã«ãããããªãæ¹ã ã, æéªæªãªã¢ããªã³ã®ãã©ã°ã¤ã³ãæ¸ããã¦ããæ¹ã ã®éã§ã¯, 空æ°ã®ãããªåå¨ã¨ãªã£ã¦ããããã. èªåã¯ãã®è¨æ³ãæ°ã¶æã»ã©åã«ç¥ã, ãããããã£ã¨ãã®æ¸ãæ¹ã«æ§ãã¦ã¯, ã¨ããçç±ã®çºã«ä½¿ããã¨ãã§ãããã©ãããæãã
{{#tags}}- {{label}}
{{/tags}}