ä»ã¾ã§ããæ¸ãã¦ãã®ã count[key] = count[key] ? count[key] + 1 : 1; ããæ¸ãããã¨ãå¤æããã count[key] = ++count[key] || 1; ã³ã¡ã³ãæ¬ã¸ã®åç count[key]ãNumberã¾ãã¯undefinedã§ããã¨ãã¦ãå人çã«ã¯ count[key] = (count[key] || 0) + 1; ã®ã»ãã好ã¿ã§ãã JavaScriptã§ã¯åé¡ãªãã¨ã¯ãããè¨èªã«ãã£ã¦ã¯i = ++iã®åä½ãæªå®ç¾©ã ã£ããããã®ã§ã åè ã®æ¸ãæ¹ã¨ãã®æ¸ãæ¹ã¯å®ã¯åé¡ããã£ã¦ãObject.prototypeã«å®ç¾©ããã¦ãã¡ã½ããã¨ããã·ã¥ã®ãã¼åããã¶ãã¨ãããããªãããªã®ã§æ¬å½ã¯count.hasOwnProperty(key)ã§ãã§ãã¯ããã®ãæ£ããã®ã ããã©ãåºç¾åæ°ã®ã«ã¦ã³ããã¨ãã§ã¡ã½ããå¼ã³åºãã¨ãããããª
{{#tags}}- {{label}}
{{/tags}}